Compare commits

...

86 Commits

Author SHA1 Message Date
03b49d42a6 🚀RELEASE 3.15.40-0 [CI SKIP] 2022-06-12 00:24:52 +00:00
f363467d36 🚀RELEASE 3.15.39 [CI SKIP] 2022-06-11 00:24:09 +00:00
7818b5942a 🚀RELEASE 3.15.38 [CI SKIP] 2022-06-10 00:23:52 +00:00
94eeb28f6c 🚀RELEASE 3.15.37 [CI SKIP] 2022-06-09 00:23:50 +00:00
b9e8923876 🚀RELEASE 3.15.36 [CI SKIP] 2022-06-08 00:23:53 +00:00
2070d3424a 🚀RELEASE 3.15.35 [CI SKIP] 2022-06-07 17:19:04 +00:00
e8f3992b91 Merge pull request 'Update registry.odit.services/hub/library/node Docker tag to v18.3.0' (#9) from renovate/registry.odit.services-hub-library-node-18.x into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #9
Bump 
2022-06-07 17:18:29 +00:00
88120a7bd0 Update registry.odit.services/hub/library/node Docker tag to v18.3.0 2022-06-06 18:48:53 +00:00
d2acc6c444 🚀RELEASE 3.15.34 [CI SKIP] 2022-06-05 00:24:55 +00:00
10b711155e 🚀RELEASE 3.15.33 [CI SKIP] 2022-06-04 00:23:48 +00:00
1bb5af569d 🚀RELEASE 3.15.32 [CI SKIP] 2022-06-03 00:23:57 +00:00
8c2c3ff001 🚀RELEASE 3.15.31 [CI SKIP] 2022-06-02 00:24:05 +00:00
944d355b47 🚀RELEASE 3.15.30 [CI SKIP] 2022-06-01 00:23:53 +00:00
e80298e546 🚀RELEASE 3.15.29 [CI SKIP] 2022-05-31 00:23:48 +00:00
6aab36ec2a 🚀RELEASE 3.15.28 [CI SKIP] 2022-05-29 00:24:50 +00:00
3751f7434e 🚀RELEASE 3.15.27 [CI SKIP] 2022-05-28 00:23:53 +00:00
d6a9fcf77c 🚀RELEASE 3.15.26 [CI SKIP] 2022-05-27 00:24:01 +00:00
f448c67dbb 🚀RELEASE 3.15.25 [CI SKIP] 2022-05-26 00:23:47 +00:00
4a968fd5ce 🚀RELEASE 3.15.24 [CI SKIP] 2022-05-25 00:18:28 +00:00
354b8c6edb 🚀RELEASE 3.15.23 [CI SKIP] 2022-05-24 14:44:41 +00:00
61b0d4669d Merge pull request 'Update registry.odit.services/hub/library/node Docker tag to v18.2.0' (#7) from renovate/registry.odit.services-hub-library-node-18.x into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #7
2022-05-24 14:43:36 +00:00
517e2f3dcd Merge branch 'main' into renovate/registry.odit.services-hub-library-node-18.x 2022-05-24 14:41:57 +00:00
73b53975b5 🚀RELEASE 3.15.22 [CI SKIP] 2022-05-24 00:18:37 +00:00
7ef9c84dce 🚀RELEASE 3.15.21 [CI SKIP] 2022-05-23 00:18:32 +00:00
71a2cb587b 🚀RELEASE 3.15.21-0 [CI SKIP] 2022-05-22 00:19:21 +00:00
f125a6ddfc 🚀RELEASE 3.15.20 [CI SKIP] 2022-05-21 00:18:41 +00:00
08cb4ded9e 🚀RELEASE 3.15.19 [CI SKIP] 2022-05-20 00:19:03 +00:00
d926328e23 🚀RELEASE 3.15.18 [CI SKIP] 2022-05-19 00:18:20 +00:00
4deb1d53b7 Update registry.odit.services/hub/library/node Docker tag to v18.2.0 2022-05-18 21:48:43 +00:00
3108e46f3d 🚀RELEASE 3.15.17 [CI SKIP] 2022-05-18 00:18:23 +00:00
85f1e99153 🚀RELEASE 3.15.16 [CI SKIP] 2022-05-17 00:18:22 +00:00
93f3da858b 🚀RELEASE 3.15.15 [CI SKIP] 2022-05-16 00:18:39 +00:00
5f41a56149 🚀RELEASE 3.15.15-0 [CI SKIP] 2022-05-15 00:10:14 +00:00
e8aeb52a81 🚀RELEASE 3.15.14 [CI SKIP] 2022-05-14 00:09:17 +00:00
3d8edb129e 🚀RELEASE 3.15.13 [CI SKIP] 2022-05-13 00:09:23 +00:00
f0391ddfcf 🚀RELEASE 3.15.12 [CI SKIP] 2022-05-12 00:09:14 +00:00
73ddccc66f 🚀RELEASE 3.15.11 [CI SKIP] 2022-05-11 00:09:04 +00:00
556e51e87f 🚀RELEASE 3.15.10 [CI SKIP] 2022-05-10 00:09:06 +00:00
e9359ec998 Added basic release script [CI SKIP] 2022-05-09 16:20:54 +02:00
6f86d1f007 🚀RELEASE 3.15.9 [CI SKIP] 2022-05-09 14:18:49 +00:00
8deefdbf38 Merge branch 'main' of git.odit.services:odit/nginx-brotli
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-09 16:18:07 +02:00
f4e1c1de18 Added basic readme [CI SKIP] 2022-05-09 16:18:02 +02:00
90924d7bb3 🚀RELEASE 3.15.8 [CI SKIP] 2022-05-09 00:09:22 +00:00
584f7aa710 🚀RELEASE 3.15.7 [CI SKIP] 2022-05-07 17:56:12 +00:00
6d9eb25330 Merge branch 'main' of git.odit.services:odit/nginx-brotli
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-07 19:55:33 +02:00
940d25b0c2 Typo [CI SKIP] 2022-05-07 19:55:25 +02:00
3ce730d822 🚀RELEASE 3.15.6 [CI SKIP] 2022-05-07 00:09:29 +00:00
7164c54074 🚀RELEASE 3.15.5 [CI SKIP] 2022-05-06 00:09:16 +00:00
3835b00832 🚀RELEASE 3.15.4 [CI SKIP] 2022-05-05 00:09:09 +00:00
b49a13670c 🚀RELEASE 3.15.3 [CI SKIP] 2022-05-04 20:55:06 +00:00
d1e7eb751a Merge branch 'main' of git.odit.services:odit/nginx-brotli
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-04 22:54:35 +02:00
f1cdf753ab Yeah, a cosign fix 2022-05-04 22:54:30 +02:00
9fc7fa989e 🚀RELEASE 3.15.2 [CI SKIP] 2022-05-04 20:15:32 +00:00
9376b65be5 Re-added weekly prepatch
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-04 22:14:57 +02:00
901bb7ce80 Quotes
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 22:13:45 +02:00
9d8b22d4e9 Added cosign
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-05-04 22:13:04 +02:00
b970ebe600 Added bump patch config
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 22:12:03 +02:00
e4d5d5e448 Short reset
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 22:11:29 +02:00
c30fd6eadb Valid yaml is valid
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-05-04 22:10:08 +02:00
275c9cb8c6 Test
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-05-04 22:09:01 +02:00
544398c895 Name fix
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-05-04 22:06:18 +02:00
8bdc6d6a15 Cosign tags
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-05-04 22:05:06 +02:00
1f76c43a2a Split into weekly prepatch [CI SKIP] 2022-05-04 21:10:08 +02:00
e85a2c6e93 🚀RELEASE 3.15.1 [CI SKIP] 2022-05-04 19:02:01 +00:00
131494a7d8 Fixed repo
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-04 21:00:35 +02:00
72805144ed Defaulted git config upstream
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 20:57:15 +02:00
ae5fde95d9 Manual git pull
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 20:55:10 +02:00
673c294e22 Updated git requirements
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 20:53:12 +02:00
d0d24eb332 Added custom commit logic
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 20:51:32 +02:00
3aaefd971b Disable all git features 2022-05-04 20:51:00 +02:00
081b57d97f Added current push config
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 20:49:07 +02:00
bd053c289f Added ci skip 2022-05-04 20:47:03 +02:00
5fe28253e0 Added remota
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 20:46:04 +02:00
848e1b43a3 Dont push
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-04 20:44:13 +02:00
468c347039 Merge pull request 'feature/4-automatic_versioning' (#5) from feature/4-automatic_versioning into main
Some checks reported errors
continuous-integration/drone/push Build was killed
Reviewed-on: #5
2022-05-04 18:42:55 +00:00
a5743662e1 Updated trigger condition 2022-05-04 20:42:45 +02:00
4a17547efb Fancy custom drone shit
Some checks failed
continuous-integration/drone/push Build is failing
2022-05-04 20:41:50 +02:00
2e3970a6c6 Now automagicly creating gitea releases after docker build
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-04 20:27:28 +02:00
78a82af315 Added release-it config
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-04 20:23:09 +02:00
2915d0ad18 Added gitignore
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-04 20:17:48 +02:00
8e25d7ba9d Merge pull request 'Update registry.odit.services/hub/library/alpine Docker tag to v3.15' (#3) from renovate/registry.odit.services-hub-library-alpine-3.x into main
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #3
2022-04-30 12:18:37 +00:00
76c217cefa Merge branch 'main' into renovate/registry.odit.services-hub-library-alpine-3.x
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-30 12:15:51 +00:00
8331744547 Dry run build on pr
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-30 14:15:29 +02:00
863c664901 Update registry.odit.services/hub/library/alpine Docker tag to v3.15
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-30 10:17:29 +00:00
42ab130960 Added weekly build
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-13 18:44:51 +02:00
9d99d9251d Added renovate config
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-12 16:25:19 +02:00
6 changed files with 225 additions and 20 deletions

View File

@@ -12,12 +12,61 @@ get:
path: odit-registry-builder
name: password
---
kind: secret
name: gitea_token
get:
path: odit-git-bot
name: apikey
---
kind: secret
name: git_ssh
get:
path: odit-git-bot
name: sshkey
---
kind: secret
name: cosign_key
get:
path: cosign
name: cosign.key
---
kind: secret
name: cosign_password
get:
path: cosign
name: cosign.password
---
kind: pipeline
type: kubernetes
name: build:latest
steps:
- name: bump_patch
depends_on: [clone]
image: registry.odit.services/hub/library/node:18.3.0-alpine3.15
commands:
- apk add git
- git config --global push.default current
- git branch --set-upstream-to=origin/main main
- yarn
- yarn release:patch
- git pull
- name: push to repo
image: appleboy/drone-git-push
depends_on: [bump_patch]
settings:
commit: false
author_email: bot@odit.services
followtags: true
branch: main
remote: git@git.odit.services:odit/nginx-brotli.git
skip_verify: true
ssh_key:
from_secret: git_ssh
- name: docker release
image: plugins/docker
depends_on: [clone]
@@ -32,17 +81,15 @@ steps:
- latest
registry: registry.odit.services
mtu: 1000
when:
branch:
- main
trigger:
branch:
- main
---
kind: pipeline
type: kubernetes
name: build:tags
steps:
- name: build $DRONE_TAG
- name: build_tag
image: plugins/docker
user: 0
depends_on: [clone]
@@ -53,18 +100,33 @@ steps:
from_secret: docker_password
repo: registry.odit.services/library/nginx-brotli
tags:
- '${DRONE_TAG}'
- "${DRONE_TAG}"
registry: registry.odit.services
mtu: 1000
- name: sign_image
image: registry.odit.services/hub/library/alpine:edge
depends_on: [build_tag]
commands:
- apk add cosign docker
- echo $COSIGN_KEY | sed 's/<br>/\n/g' > cosign.key
- echo $DOCKER_PASSWORD | docker login registry.odit.services -u $DOCKER_USERNAME --password-stdin
- "cosign sign --key cosign.key registry.odit.services/library/nginx-brotli:${DRONE_TAG}"
environment:
COSIGN_KEY:
from_secret: cosign_key
COSIGN_PASSWORD:
from_secret: cosign_password
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
trigger:
event:
- tag
- tag
---
kind: pipeline
type: kubernetes
name: build:nightly
steps:
- name: docker release
image: plugins/docker
@@ -80,12 +142,78 @@ steps:
- nightly
registry: registry.odit.services
mtu: 1000
when:
branch:
- main
trigger:
branch:
- main
event:
- cron
cron:
include:
- nightly
---
kind: pipeline
type: kubernetes
name: build:weekly
steps:
- name: bump_prepatch
depends_on: [clone]
image: registry.odit.services/hub/library/node:18.3.0-alpine3.15
commands:
- apk add git
- git config --global push.default current
- git branch --set-upstream-to=origin/main main
- yarn
- "yarn release:prepatch"
- git pull
- name: push to repo
image: appleboy/drone-git-push
depends_on: [bump_prepatch]
settings:
commit: false
author_email: bot@odit.services
followtags: true
branch: main
remote: git@git.odit.services:odit/nginx-brotli.git
skip_verify: true
ssh_key:
from_secret: git_ssh
- name: docker release
image: plugins/docker
user: 0
depends_on: [clone]
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: registry.odit.services/library/nginx-brotli
tags:
- weekly
- "${DRONE_STAGE_STARTED}"
registry: registry.odit.services
mtu: 1000
trigger:
branch:
- main
event:
- cron
cron:
include:
- weekly
---
kind: pipeline
type: kubernetes
name: build:pr
steps:
- name: docker release
image: plugins/docker
user: 0
depends_on: [clone]
settings:
dry_run: true
tags:
- "PR-${DRONE_STAGE_STARTED}"
mtu: 1000
trigger:
event:
- cron
cron:
exclude:
- nightly
- pull_request

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
package-lock.json
node_modules

View File

@@ -47,7 +47,7 @@ ARG CONFIG="\
--add-module=/usr/src/ngx_brotli \
"
FROM registry.odit.services/hub/library/alpine:3.13
FROM registry.odit.services/hub/library/alpine:3.15
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
ARG NGINX_VERSION
@@ -132,7 +132,7 @@ RUN \
| xargs -r apk info --installed \
| sort -u > /tmp/runDeps.txt
FROM registry.odit.services/hub/library/alpine:3.13
FROM registry.odit.services/hub/library/alpine:3.15
ARG NGINX_VERSION
COPY --from=0 /tmp/runDeps.txt /tmp/runDeps.txt

View File

@@ -0,0 +1,33 @@
<p align="center">
<a href="https://odit.services" target="blank"><img src="https://odit.services/img/profile-pic-no_bg.webp" width="200" alt="ODIT Logo" /></a>
</p>
<p align="center">NGINX - Brotli</p>
## Description
A custom alpine based nginx image including Brotli for compression.
## Build
```bash
docker build .
```
## Use
* Docker Image: registry.odit.services/library/nginx-brotli
* Webserver Folder Mount: /usr/share/nginx/html/
* Nginx Config Mount: /etc/nginx/nginx.conf
## Release a new version (triggers ci)
```bash
# pnpm
pnpm i
pnpm release
# yarn
yarn
yarn release
```

34
package.json Normal file
View File

@@ -0,0 +1,34 @@
{
"name": "nginx-brotli",
"version": "3.15.40-0",
"description": "NGINX Base Image feat. brotli",
"repository": {
"type": "git",
"url": "git@git.odit.services:odit/nginx-brotli.git"
},
"license": "MIT",
"devDependencies": {
"release-it": "^15.0.0"
},
"scripts": {
"release": "release-it",
"release:patch": "release-it --patch --ci",
"release:prepatch": "release-it --prePatch --preRelease --ci"
},
"release-it": {
"git": {
"commit": true,
"requireCleanWorkingDir": false,
"requireUpstream": false,
"requireBranch": "main",
"commitMessage": "🚀RELEASE ${version} [CI SKIP]",
"push": false,
"tag": true,
"tagName": "${version}",
"tagAnnotation": "${version}"
},
"npm": {
"publish": false
}
}
}

8
renovate.json Normal file
View File

@@ -0,0 +1,8 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboard": true,
"baseBranches": ["main"],
"addLabels": ["status:review_needed", "enhancement", "priority:medium"],
"reviewers": ["niggl", "philipp"]
}