Fix actions file

Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
This commit is contained in:
maksim.nabokikh 2025-03-03 20:36:57 +01:00
parent 1fae52e85c
commit 5722b2aec8

View File

@ -44,14 +44,16 @@ jobs:
# Build and push Docker image with Buildx (don't push on PR) # Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action # https://github.com/docker/build-push-action
- name: Build Image - name: Build Image
if: ${{ github.event_name == 'pull_request' }}
run: | run: |
. <(echo "$DOCKER_METADATA_OUTPUT_LABELS" | awk '{print "export WERF_EXPORT_ADD_LABEL_" NR "=" $0}') . <(echo "$DOCKER_METADATA_OUTPUT_LABELS" | awk '{print "export WERF_EXPORT_ADD_LABEL_" NR "=" $0}')
werf build werf build
with:
push: ${{ github.event_name == 'pull_request' }} # with:
tags: ${{ steps.meta.outputs.tags }} # push: ${{ github.event_name == 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }} # tags: ${{ steps.meta.outputs.tags }}
build-args: | # labels: ${{ steps.meta.outputs.labels }}
TAG=${{ github.ref_name }} # build-args: |
platforms: linux/amd64,linux/arm64,linux/arm # TAG=${{ github.ref_name }}
file: ./Dockerfile.${{ matrix.name }} # platforms: linux/amd64,linux/arm64,linux/arm
# file: ./Dockerfile.${{ matrix.name }}