Compare commits

..

71 Commits

Author SHA1 Message Date
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
3 changed files with 101 additions and 26 deletions

View File

@@ -26,19 +26,35 @@ get:
path: odit-git-bot path: odit-git-bot
name: sshkey 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 kind: pipeline
type: kubernetes type: kubernetes
name: build:latest name: build:latest
steps: steps:
- name: bump_patch - name: bump_patch
depends_on: [clone] depends_on: [clone]
image: registry.odit.services/hub/library/node:18.1.0-alpine3.15 image: registry.odit.services/hub/library/node:18.3.0-alpine3.15
commands: commands:
- apk add git - apk add git
- git config --global push.default current
- git branch --set-upstream-to=origin/main main
- yarn - yarn
- yarn release - yarn release:patch
- git pull
- name: push to repo - name: push to repo
image: appleboy/drone-git-push image: appleboy/drone-git-push
depends_on: [bump_patch] depends_on: [bump_patch]
@@ -47,7 +63,7 @@ steps:
author_email: bot@odit.services author_email: bot@odit.services
followtags: true followtags: true
branch: main branch: main
remote: git@git.odit.services:lfk/scanclient-live.git remote: git@git.odit.services:odit/nginx-brotli.git
skip_verify: true skip_verify: true
ssh_key: ssh_key:
from_secret: git_ssh from_secret: git_ssh
@@ -68,14 +84,12 @@ steps:
trigger: trigger:
branch: branch:
- main - main
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: build:tags name: build:tags
steps: steps:
- name: build $DRONE_TAG - name: build_tag
image: plugins/docker image: plugins/docker
user: 0 user: 0
depends_on: [clone] depends_on: [clone]
@@ -89,23 +103,30 @@ steps:
- "${DRONE_TAG}" - "${DRONE_TAG}"
registry: registry.odit.services registry: registry.odit.services
mtu: 1000 mtu: 1000
- name: gitea_release - name: sign_image
image: plugins/gitea-release image: registry.odit.services/hub/library/alpine:edge
settings: depends_on: [build_tag]
title: Release ${DRONE_TAG} commands:
note: "Pull: `docker pull registry.odit.services/library/nginx-brotli:${DRONE_TAG}`" - apk add cosign docker
api_key: - echo $COSIGN_KEY | sed 's/<br>/\n/g' > cosign.key
from_secret: gitea_token - echo $DOCKER_PASSWORD | docker login registry.odit.services -u $DOCKER_USERNAME --password-stdin
base_url: https://git.odit.services - "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: trigger:
event: event:
- tag - tag
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: build:nightly name: build:nightly
steps: steps:
- name: docker release - name: docker release
image: plugins/docker image: plugins/docker
@@ -129,13 +150,33 @@ trigger:
cron: cron:
include: include:
- nightly - nightly
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: build:weekly name: build:weekly
steps: 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 - name: docker release
image: plugins/docker image: plugins/docker
user: 0 user: 0
@@ -159,12 +200,10 @@ trigger:
cron: cron:
include: include:
- weekly - weekly
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: build:pr name: build:pr
steps: steps:
- name: docker release - name: docker release
image: plugins/docker image: plugins/docker

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
```

View File

@@ -1,6 +1,6 @@
{ {
"name": "nginx-brotli", "name": "nginx-brotli",
"version": "3.15.0", "version": "3.15.37",
"description": "NGINX Base Image feat. brotli", "description": "NGINX Base Image feat. brotli",
"repository": { "repository": {
"type": "git", "type": "git",
@@ -11,15 +11,18 @@
"release-it": "^15.0.0" "release-it": "^15.0.0"
}, },
"scripts": { "scripts": {
"release":"release-it --patch --ci" "release": "release-it",
"release:patch": "release-it --patch --ci",
"release:prepatch": "release-it --prePatch --preRelease --ci"
}, },
"release-it": { "release-it": {
"git": { "git": {
"commit": true, "commit": true,
"requireCleanWorkingDir": false, "requireCleanWorkingDir": false,
"requireUpstream": false,
"requireBranch": "main", "requireBranch": "main",
"commitMessage": "🚀RELEASE ${version}", "commitMessage": "🚀RELEASE ${version} [CI SKIP]",
"push": true, "push": false,
"tag": true, "tag": true,
"tagName": "${version}", "tagName": "${version}",
"tagAnnotation": "${version}" "tagAnnotation": "${version}"
@@ -28,4 +31,4 @@
"publish": false "publish": false
} }
} }
} }