Update docker-image.yml

This commit is contained in:
Alberto Xamin 2024-12-30 17:23:51 +01:00 committed by GitHub
parent 0a2bbce2da
commit 61fa295f8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,14 +35,18 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Prepare Platform Tag
id: platform_tag
run: echo "TAG=${{ matrix.platform }}" | sed 's|/|-|g' > tag.txt
- name: Build and push platform-specific image - name: Build and push platform-specific image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
push: true push: true
tags: albertoxamin/bang:${{ matrix.platform | replace('/', '-') }} tags: albertoxamin/bang:$(cat tag.txt)
cache-from: type=registry,ref=albertoxamin/bang:${{ matrix.platform }} cache-from: type=registry,ref=albertoxamin/bang:$(cat tag.txt)
cache-to: type=inline cache-to: type=inline
create-manifest: create-manifest: