Compare commits

..

2 Commits

Author SHA1 Message Date
TheAssassin 23d7c6acd4 Debugging
Build and publish Docker image / build (push) Failing after 1m53s Details
2024-06-01 17:41:11 +02:00
TheAssassin 9e12dbade4 Don't hardcode default branch 2024-06-01 17:41:02 +02:00
1 changed files with 3 additions and 3 deletions

View File

@ -31,9 +31,9 @@ jobs:
env:
TAG: ${{ steps.meta.outputs.tags[0] }}
run: |
echo "TAG=$TAG"
echo "::set-output name=tag::${TAG##*:}"
- name: Build Docker image with kaniko
uses: https://code.thetadev.de/ThetaDev/action-kaniko@dbb8da86cf2d498dde8ec1b3be967ceda17a21ff
with:
@ -43,10 +43,10 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
tag: ${{ steps.tag.outputs.tag }}
platforms: linux/amd64
tag_with_latest: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
tag_with_latest: ${{ gitea.ref == format('refs/heads/{0}', gitea.event.repository.default_branch) }}
- name: Trigger redeployment
if: gitea.ref == 'refs/heads/main'
if: gitea.ref == format('refs/heads/{0}', gitea.event.repository.default_branch
env:
UPDATE_URL: ${{ secrets.UPDATE_URL }}
UPDATE_TOKEN: ${{ secrets.UPDATE_TOKEN }}