From 7e018a48e76b99b25547518bbdb4632587ff9ac8 Mon Sep 17 00:00:00 2001 From: Chris Colvard Date: Mon, 14 Aug 2023 13:24:56 -0400 Subject: [PATCH] Add build target --- .github/workflows/podman-image.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/podman-image.yml b/.github/workflows/podman-image.yml index 3217f5c513..86fc6c67dd 100644 --- a/.github/workflows/podman-image.yml +++ b/.github/workflows/podman-image.yml @@ -12,8 +12,9 @@ env: DOCKERHUB_IMAGE_REGISTRY: docker.io/avalonmediasystem DOCKERHUB_USER: ${{ secrets.dockerhub_user }} DOCKERHUB_PASSWORD: ${{ secrets.dockerhub_password }} - IMAGE_TAG: ${{ fromJSON('{"refs/heads/main":"production","refs/heads/develop":"develop","refs/heads/staging":"staging","refs/heads/sandbox":"sandbox"}')[github.ref] }} + IMAGE_TAG: ${{ fromJSON('{"refs/heads/main":"production","refs/heads/develop":"develop","refs/heads/staging":"staging","refs/heads/sandbox":"sandbox","refs/heads/cjcolvar-patch-4":"develop"}')[github.ref] }} BRANCH: ${{ fromJSON('{"refs/heads/main":"main","refs/heads/develop":"develop","refs/heads/staging":"staging","refs/heads/sandbox":"sandbox","refs/heads/cjcolvar-patch-4":"develop"}')[github.ref] }} + BUILD_TARGET: ${{ fromJSON('{"refs/heads/main":"prod","refs/heads/develop":"dev","refs/heads/staging":"prod","refs/heads/sandbox":"prod","refs/heads/cjcolvar-patch-4":"dev"}')[github.ref] }} jobs: @@ -30,6 +31,7 @@ jobs: tags: ${{ env.IMAGE_TAG }} ${{ github.sha }} containerfiles: ./Dockerfile oci: true + extra-args: --target ${{ env.BUILD_TARGET }} - name: Push To GHCR uses: redhat-actions/push-to-registry@v2 with: