fix(#3): 🔖 fix tag
Some checks failed
ci / build (push) Failing after 33s

This commit is contained in:
Daniel Sy 2025-04-29 09:40:59 +02:00
parent 6a099b200d
commit 0555337480
Signed by: Daniel.Sy
GPG key ID: 1F39A8BBCD2EE3D3

View file

@ -7,8 +7,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- - name: Repository meta
name: Repository meta
id: repository id: repository
run: | run: |
registry=${{ github.server_url }} registry=${{ github.server_url }}
@ -17,31 +16,38 @@ jobs:
echo "registry=${registry}" echo "registry=${registry}"
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
echo "repository=${repository}" >> "$GITHUB_OUTPUT" echo "repository=${repository}" >> "$GITHUB_OUTPUT"
echo "repository=${repository}" echo "repository=${repository}"
-
name: Docker meta - name: Docker meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
id: docker id: docker
with: with:
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }} images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
- tags: |
name: Login to registry # Für push-Events: Tag 'latest'
type=raw,value=latest,enable=${{ github.event_name == 'push' }}
# Für tag-Events: Nutze den Git-Tag (z. B. v1.0.0)
type=ref,event=tag
# Optional: Commit-SHA für alle Events
type=sha,prefix=sha-
- name: Login to registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ steps.repository.outputs.registry }} registry: ${{ steps.repository.outputs.registry }}
username: ${{ secrets.PACKAGES_USER }} username: ${{ secrets.PACKAGES_USER }}
password: ${{ secrets.PACKAGES_TOKEN }} password: ${{ secrets.PACKAGES_TOKEN }}
-
name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with: with:
buildkitd-flags: '--allow-insecure-entitlement network.host' buildkitd-flags: '--allow-insecure-entitlement network.host'
driver-opts: network=host driver-opts: network=host
-
name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
push: true push: true