Update docker-image.yml
This commit is contained in:
parent
0a2bbce2da
commit
61fa295f8d
8
.github/workflows/docker-image.yml
vendored
8
.github/workflows/docker-image.yml
vendored
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user