Skip to content

Commit

Permalink
🌱 Image build, use variables for repo push
Browse files Browse the repository at this point in the history
To help out people building images in a fork,
use github action variables to be able to configure
the target registry and image names.

Now on a fork, the destination of an image build can be set
by using Action Variables:
  - IMAGE_BUILD_REGISTRY (default: "quay.io/konveyor")
  - IMAGE_BUILD_IMAGE_NAME (default: "tackle2-ui")

and secrets:
  - QUAY_PUBLISH_ROBOT
  - QUAY_PUBLISH_TOKEN

Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 committed Sep 12, 2024
1 parent bf587d3 commit 1b4ae76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ 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: "quay.io/konveyor"
image_name: "tackle2-ui"
registry: ${{ vars.IMAGE_BUILD_REGISTRY || 'quay.io/konveyor' }}
image_name: ${{ vars.IMAGE_BUILD_IMAGE_NAME || 'tackle2-ui' }}
containerfile: "./Dockerfile"

# keep the architectures in sync with `ci-image-build.yml`
Expand Down

0 comments on commit 1b4ae76

Please sign in to comment.