fix replacement

This commit is contained in:
Alberto Xamin 2024-12-30 17:29:30 +01:00
parent 61fa295f8d
commit 4d2a222f93
No known key found for this signature in database
GPG Key ID: 5ABFCD8A22EA6F5D

View File

@ -37,7 +37,7 @@ jobs:
- name: Prepare Platform Tag - name: Prepare Platform Tag
id: platform_tag id: platform_tag
run: echo "TAG=${{ matrix.platform }}" | sed 's|/|-|g' > tag.txt run: echo "platform_tag=$(echo ${{ matrix.platform }} | sed 's|/|-|g')" >> $GITHUB_ENV
- 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
@ -45,8 +45,8 @@ jobs:
context: . context: .
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
push: true push: true
tags: albertoxamin/bang:$(cat tag.txt) tags: albertoxamin/bang:${{ env.platform_tag }}
cache-from: type=registry,ref=albertoxamin/bang:$(cat tag.txt) cache-from: type=registry,ref=albertoxamin/bang:${{ env.platform_tag }}
cache-to: type=inline cache-to: type=inline
create-manifest: create-manifest: