fix push step

This commit is contained in:
Syed Ali Shahbaz
2023-09-29 12:23:21 +04:00
committed by GitHub
parent d17064f67f
commit 4be3f45228

View File

@@ -156,20 +156,13 @@ jobs:
- name: Push image
uses: docker/build-push-action@v4
with:
context: .
# push: ${{ github.event_name != 'pull_request' }}
push: false
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
run: |
tags="${{ steps.meta.outputs.tags }}"
IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
tag=${ADDR[0]} # Get the first tag
run: |
tags="${{ steps.meta.outputs.tags }}"
IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
tag=${ADDR[0]} # Get the first tag
docker push $tag
docker push $tag
- name: Cleanup
run: |