Skip to content

Commit

Permalink
ci(pytest): allow passing of image_tag to image build stage
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 22, 2023
1 parent 99dd6cb commit 9cc4c79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/r-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ jobs:
backend-test-build:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@main
needs: [check-img-cache]
if: ${{ inputs.image_tag == '' && needs.check-img-cache.outputs.cache-hit != 'true' }}
if: ${{ needs.check-img-cache.outputs.cache-hit != 'true' }}
with:
context: src/backend
build_target: ci
image_name: ghcr.io/${{ github.repository }}/backend
image_tags: ${{ inputs.image_tag && format('ghcr.io/{0}/backend:{1}', github.repository, inputs.image_tag) || '' }}
build_args: |
APP_VERSION=${{ github.ref_name }}
COMMIT_REF=${{ github.sha }}
Expand Down

0 comments on commit 9cc4c79

Please sign in to comment.