Compare commits

...

12 Commits

Author SHA1 Message Date
468c347039 Merge pull request 'feature/4-automatic_versioning' (#5) from feature/4-automatic_versioning into main
Some checks failed
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
5 changed files with 144 additions and 14 deletions

View File

@@ -12,12 +12,45 @@ 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: pipeline
type: kubernetes
name: build:latest
steps:
- name: bump_patch
depends_on: [clone]
image: registry.odit.services/hub/library/node:18.1.0-alpine3.15
commands:
- apk add git
- yarn
- yarn release
- 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:lfk/scanclient-live.git
skip_verify: true
ssh_key:
from_secret: git_ssh
- name: docker release
image: plugins/docker
depends_on: [clone]
@@ -32,9 +65,9 @@ steps:
- latest
registry: registry.odit.services
mtu: 1000
when:
branch:
- main
trigger:
branch:
- main
---
kind: pipeline
@@ -53,12 +86,20 @@ steps:
from_secret: docker_password
repo: registry.odit.services/library/nginx-brotli
tags:
- '${DRONE_TAG}'
- "${DRONE_TAG}"
registry: registry.odit.services
mtu: 1000
- name: gitea_release
image: plugins/gitea-release
settings:
title: Release ${DRONE_TAG}
note: "Pull: `docker pull registry.odit.services/library/nginx-brotli:${DRONE_TAG}`"
api_key:
from_secret: gitea_token
base_url: https://git.odit.services
trigger:
event:
- tag
- tag
---
kind: pipeline
@@ -80,12 +121,60 @@ 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: 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

31
package.json Normal file
View File

@@ -0,0 +1,31 @@
{
"name": "nginx-brotli",
"version": "3.15.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 --patch --ci"
},
"release-it": {
"git": {
"commit": true,
"requireCleanWorkingDir": false,
"requireBranch": "main",
"commitMessage": "🚀RELEASE ${version}",
"push": true,
"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"]
}