Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoxamin authored Dec 30, 2024
1 parent 0a2bbce commit 61fa295
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
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
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform }}
push: true
tags: albertoxamin/bang:${{ matrix.platform | replace('/', '-') }}
cache-from: type=registry,ref=albertoxamin/bang:${{ matrix.platform }}
tags: albertoxamin/bang:$(cat tag.txt)
cache-from: type=registry,ref=albertoxamin/bang:$(cat tag.txt)
cache-to: type=inline

create-manifest:
Expand Down

0 comments on commit 61fa295

Please sign in to comment.