diff --git a/.github/workflows/publish-tag.yaml b/.github/workflows/publish-tag.yaml index 1949e49..cf1ae95 100644 --- a/.github/workflows/publish-tag.yaml +++ b/.github/workflows/publish-tag.yaml @@ -48,7 +48,7 @@ jobs: source "$(werf ci-env github --as-file)" source <(jq -r '.labels | to_entries | to_entries[] | "export WERF_EXPORT_ADD_LABEL_\(.key)=\"\(.value.key)=\(.value.value)\""' <<< $DOCKER_METADATA_OUTPUT_JSON) - werf build --repo='' --final-repo='' --secondary-repo "$WERF_REPO" + werf build --repo='' --final-repo='' --secondary-repo "$WERF_REPO" --env "$WERF_ENV" - name: Build and Push Image if: ${{ github.event_name != 'pull_request' }} @@ -56,4 +56,4 @@ jobs: source "$(werf ci-env github --as-file)" source <(jq -r '.labels | to_entries | to_entries[] | "export WERF_EXPORT_ADD_LABEL_\(.key)=\"\(.value.key)=\(.value.value)\""' <<< $DOCKER_METADATA_OUTPUT_JSON) - werf export --tag ghcr.io/${{ github.repository }}/%image%:${{ github.ref_name }} + werf export --tag ghcr.io/${{ github.repository }}/%image%:${{ github.ref_name }} --env "$WERF_ENV"