add tag
This commit is contained in:
@@ -38,21 +38,21 @@ jobs:
|
||||
run: |
|
||||
mkdir -p ~/.npm
|
||||
echo "registry=https://gitea.controller.bittehackmichnicht.de/api/packages/${{ github.repository }}/npm/" > ~/.npmrc
|
||||
echo "//gitea.controller.bittehackmichnicht.de/api/packages/${{ github.repository }}/npm/:_authToken=${{ secrets.REGISTRY_PAT }}" >> ~/.npmrc
|
||||
echo "//gitea.controller.bittehackmichnicht.de/api/packages/${{ github.repository }}/npm/:_authToken=${{ secrets.GITEA_TOKEN }}" >> ~/.npmrc
|
||||
- name: Build & publish npm package
|
||||
env:
|
||||
VERSION: ${{ steps.generate_tag.outputs.VERSION }}
|
||||
run: |
|
||||
npm version $VERSION --no-git-tag-version
|
||||
npm run build
|
||||
npm publish --registry https://gitea.controller.bittehackmichnicht.de/api/packages/${{ github.repository }}/npm/
|
||||
npm publish --registry https://gitea.controller.bittehackmichnicht.de/api/packages/${{ github.repository }}/npm/ --tag alpha
|
||||
- name: Build & publish image
|
||||
env:
|
||||
TAG: ${{ steps.generate_tag.outputs.TAG }}
|
||||
LATEST: ${{ steps.generate_tag.outputs.LATEST }}
|
||||
run: |
|
||||
docker build -t $TAG .
|
||||
echo ${{ secrets.REGISTRY_PAT }} | docker login gitea.controller.bittehackmichnicht.de -u ${{ github.actor }} --password-stdin
|
||||
echo ${{ secrets.GITEA_TOKEN }} | docker login gitea.controller.bittehackmichnicht.de -u ${{ github.actor }} --password-stdin
|
||||
docker push $TAG
|
||||
if [ "$LATEST" = "true" ]; then
|
||||
docker tag $TAG gitea.controller.bittehackmichnicht.de/${{ github.repository }}/ptp-chat-frontend:latest
|
||||
|
||||
Reference in New Issue
Block a user