Skip to content

🌱 Image build, use variables for repo push #122

🌱 Image build, use variables for repo push

🌱 Image build, use variables for repo push #122

Workflow file for this run

name: Multiple Architecture Image Build
on:
workflow_dispatch:
push:
branches:
- "main"
- "release-*"
tags:
- "v*"
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
env:
target_registry: ${{ vars.IMAGE_BUILD_REGISTRY || 'quay.io/konveyor' }}
target_image_name: ${{ vars.IMAGE_BUILD_IMAGE_NAME || 'tackle2-ui' }}
jobs:
image-build:
uses: konveyor/release-tools/.github/workflows/build-push-images.yaml@main
with:
registry: ${{ env.target_registry }}

Check failure on line 24 in .github/workflows/image-build.yaml

View workflow run for this annotation

GitHub Actions / Multiple Architecture Image Build

Invalid workflow file

The workflow is not valid. .github/workflows/image-build.yaml (Line: 24, Col: 17): Unrecognized named-value: 'env'. Located at position 1 within expression: env.target_registry .github/workflows/image-build.yaml (Line: 25, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.target_image_name
image_name: ${{ env.target_image_name }}
containerfile: "./Dockerfile"
# keep the architectures in sync with `ci-image-build.yml`
architectures: '[ "amd64", "arm64" ]'
# 2023-03-19: currently needed for npm@10
extra-args: "--ulimit nofile=4096:4096"
secrets:
registry_username: ${{ secrets.QUAY_PUBLISH_ROBOT }}
registry_password: ${{ secrets.QUAY_PUBLISH_TOKEN }}