1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-04 23:10:13 +01:00

chore: add release & tagging workflow

This commit is contained in:
Elias Schneider 2022-10-17 23:05:39 +02:00
parent f3ec9be63b
commit 6b86ab0e49
3 changed files with 11 additions and 6 deletions

View File

@ -4,6 +4,9 @@ on:
pull_request:
branches:
- main
push:
tags:
- "v*"
jobs:
system-tests:

View File

@ -1,11 +1,8 @@
name: Create Docker Image
on:
push:
branches: main
paths:
- "frontend/**"
- "backend/**"
release:
types: [published]
jobs:
build:
@ -23,4 +20,5 @@ jobs:
run: |
docker buildx build --push \
--tag stonith404/pingvin-share:latest \
--tag stonith404/pingvin-share:${{ github.ref_name }} \
--platform linux/amd64,linux/arm64 .

View File

@ -1,7 +1,11 @@
{
"name": "pingvin-share",
"version": "0.0.0",
"scripts": {
"format": "cd frontend && npm run format && cd ../backend && npm run format",
"lint": "cd frontend && npm run lint && cd ../backend && npm run lint"
"lint": "cd frontend && npm run lint && cd ../backend && npm run lint",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"release:patch": "npm version patch -m 'release: %s' && git push && git push --tags",
"release:minor": "npm version minor -m 'release: %s' && git push && git push --tags"
}
}