Skip to content

Commit

Permalink
Align with solution at customer
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobEdding committed Jan 14, 2025
1 parent 580cfa7 commit b2e6e1d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/docker-build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,22 @@ jobs:
env:
DOCKER_METADATA_PR_HEAD_SHA: true # set correct sha for PRs

- name: Prepare build args
id: args
run: |
{
echo "build-args<<EOF"
echo "IMAGE_TAGS=${{ join(fromJSON(steps.meta.outputs.json).tags) }}"
echo "${{ inputs.docker-build-args }}"
echo "EOF"
} >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ inputs.docker-context }}
file: ${{ inputs.dockerfile-path }}
# TODO: test that build arg concat works
build-args: |
IMAGE_TAGS=${{ join(fromJSON(steps.meta.outputs.json).tags) }}
${{ inputs.docker-build-args }}
build-args: ${{ steps.args.outputs.build-args }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit b2e6e1d

Please sign in to comment.