fix push step
This commit is contained in:
@@ -156,20 +156,13 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
uses: docker/build-push-action@v4
|
run: |
|
||||||
with:
|
tags="${{ steps.meta.outputs.tags }}"
|
||||||
context: .
|
IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
|
||||||
# push: ${{ github.event_name != 'pull_request' }}
|
tag=${ADDR[0]} # Get the first tag
|
||||||
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
|
|
||||||
|
|
||||||
docker push $tag
|
docker push $tag
|
||||||
|
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user