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