This commit is contained in:
parent
93cd9b1d8b
commit
30c3e9000b
33
.gitea/workflows/deploy.yml
Normal file
33
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Deploy
|
||||||
|
run-name: ${{ gitea.actor }} build image and push to container registry
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
- 'staging'
|
||||||
|
- 'dev'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Publish:
|
||||||
|
runs-on: ["skeris"]
|
||||||
|
conainer:
|
||||||
|
image: gitea.pena:3000/penadevops/container-images/node-compose:main
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
|
||||||
|
- name: Publish
|
||||||
|
run: |
|
||||||
|
npm config set registry=http://gitea.pena/api/packages/skeris/npm/
|
||||||
|
npm config set -- '//gitea.pena/api/packages/skeris/npm/:_authToken' "1856e802057f59193ca6fdb4068cbea44982bcc2"
|
||||||
|
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
|
||||||
|
npm version major
|
||||||
|
elif [ "${{ github.ref }}" == "refs/heads/staging" ]; then
|
||||||
|
npm version minor
|
||||||
|
else
|
||||||
|
npm version patch
|
||||||
|
fi
|
||||||
|
npm publish
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user