mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-05 07:20:13 +01:00
chore: add release & tagging workflow
This commit is contained in:
parent
f3ec9be63b
commit
6b86ab0e49
3
.github/workflows/backend-system-tests.yml
vendored
3
.github/workflows/backend-system-tests.yml
vendored
@ -4,6 +4,9 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
system-tests:
|
system-tests:
|
||||||
|
8
.github/workflows/build-docker-image.yml
vendored
8
.github/workflows/build-docker-image.yml
vendored
@ -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 .
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user