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: pull_request:
branches: branches:
- main - main
push:
tags:
- "v*"
jobs: jobs:
system-tests: system-tests:

View File

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

View File

@ -1,7 +1,11 @@
{ {
"name": "pingvin-share", "name": "pingvin-share",
"version": "0.0.0",
"scripts": { "scripts": {
"format": "cd frontend && npm run format && cd ../backend && npm run format", "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"
} }
} }