correct docker push
This commit is contained in:
@@ -54,13 +54,17 @@ jobs:
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login "${{ secrets.DOCKER_REGISTRY }}" -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Build and Push
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
export DOCKER_BUILDKIT=1
|
||||
docker build ${{ steps.vars.outputs.docker_tags }} ${{ inputs.dockerfile_path }}
|
||||
|
||||
IMAGE="${{ steps.vars.outputs.full_image }}"
|
||||
for part in ${{ steps.vars.outputs.docker_tags }}; do
|
||||
if [[ "$part" == "${IMAGE}:"* ]]; then
|
||||
docker push "$part"
|
||||
fi
|
||||
TAGS="${{ steps.vars.outputs.docker_tags }}"
|
||||
|
||||
echo "$TAGS" | tr ' ' '\n' | grep "^${IMAGE}:" | while read -r tag; do
|
||||
echo "Pushing $tag"
|
||||
docker push "$tag"
|
||||
done
|
||||
Reference in New Issue
Block a user