Skip to content

Commit

Permalink
only push images on zapier/kubechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
djeebus committed Oct 1, 2024
1 parent 51d3b9e commit 9db9664
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/actions/build-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,21 @@ runs:

- name: Build and push the Docker image
shell: bash
run: >-
run: >-
./earthly.sh
--push
+docker-multiarch
${{ inputs.tag_latest != 'false' && format('--LATEST_IMAGE_NAME=ghcr.io/{0}:latest', github.repository) || '' }}
--GIT_TAG=${{ inputs.image_tag }}
--IMAGE_NAME=ghcr.io/${{ github.repository }}:${{ inputs.image_tag }}
if: github.repository == 'zapier/kubechecks'

- name: Build the Docker image
shell: bash
run: >-
./earthly.sh
--push
+docker-multiarch
${{ inputs.tag_latest != 'false' && format('--LATEST_IMAGE_NAME=ghcr.io/{0}:latest', github.repository) || '' }}
--GIT_TAG=${{ inputs.image_tag }}
--IMAGE_NAME=ghcr.io/${{ github.repository }}:${{ inputs.image_tag }}
if: github.repository != 'zapier/kubechecks'

0 comments on commit 9db9664

Please sign in to comment.