We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d622753 commit 3ee7373Copy full SHA for 3ee7373
.github/actions/build-push-images/action.yaml
@@ -63,9 +63,13 @@ runs:
63
shell: bash
64
env:
65
REGISTRY: ${{ inputs.registry }}
66
- TAG: latest
+ TAG: ${{ inputs.tag }}
67
run: |
68
- echo "Pushing images to registry..."
69
- docker compose -f ${{ inputs.compose-file }} build
70
- docker compose -f ${{ inputs.compose-file }} push
71
- echo "Successfully pushed all images with tag: $TAG"
+ echo "Pushing images with latest to registry..."
+ images=$(docker compose -f ${{ inputs.compose-file }} config --images)
+ for image in $images; do
+ image_name=$(echo "$image" | cut -d: -f1)
72
+ docker tag "${image}" "${image_name}":latest
73
+ docker push "${image_name}":latest
74
+ done
75
+ echo "Push $TAG as new latest completed."
0 commit comments