Forgejo Actions Debugging
Some checks failed
Run Tests on Code / test (push) Successful in 21s
Build and Release Docker Image / test (push) Successful in 29s
Build and Release Docker Image / build (push) Failing after 12s
Build and Release Docker Image / release (push) Has been skipped

This commit is contained in:
Neshura 2024-01-01 20:47:58 +01:00
parent 7248b26278
commit 04e0bc6ccb
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -35,9 +35,8 @@ jobs:
- -
name: Check if Version in package.json matches Tag name: Check if Version in package.json matches Tag
run: | run: |
echo "Test" VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" | tr -d " " )
VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" ) if test $VERSION != "${{ github.ref_name }}"; then
if test $VERSION != "${{ github.ref_name }}"; then
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'"; echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
exit 1 exit 1
else else
@ -68,7 +67,8 @@ jobs:
else else
echo "latest=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:latest" >> "$GITHUB:OUTPUT"; echo "latest=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:latest" >> "$GITHUB:OUTPUT";
fi fi
echo "version=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:${{ github.ref_name }}" >> "$GITHUB:OUTPUT"; echo ${{ github.ref_name }}
echo "version=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:${{ github.ref_name }}" >> "$GITHUB:OUTPUT";
- -
name: Push to Package Registry name: Push to Package Registry
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5