Compare commits

...

6 Commits

Author SHA1 Message Date
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
3 changed files with 77 additions and 3 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
@ -56,6 +89,14 @@ steps:
- "${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

2
.gitignore vendored Normal file
View File

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

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