Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Oct 17, 2024
1 parent 2ca22d6 commit 5905ea3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ jobs:
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{raw}}
- id: last_commit
uses: ./.github/actions/last_commit
- name: Build and push
if: (steps.image_status.outputs.updated != 'true' || inputs.rebuild == 'true')
id: build_push
Expand All @@ -127,10 +129,15 @@ jobs:
tags: unicef/hope-country-workspace:test-${{env.BRANCH}}
platforms: linux/amd64
target: test
push: false
push: true
cache-from: type=registry,ref=unicef/hope-country-workspace:test-${{env.BRANCH}},ref=unicef/hope-country-workspace:${{env.BRANCH}}
cache-to: type=registry,ref=unicef/hope-country-workspace:${{env.BRANCH}}-cache,mode=max,image-manifest=true
build-args: |
GITHUB_SERVER_URL=${{ github.server_url }}
GITHUB_REPOSITORY=${{ github.repository }}
SOURCE_COMMIT=${{ steps.last_commit.outputs.last_commit_short_sha }}
# BUILD_DATE=${{ env.BUILD_DATE }}
# labels: "${{ steps.meta.outputs.labels }}\nchecksum=${{ inputs.code_checksum }}\ndistro=${{ inputs.target }}"
# annotations: "${{ steps.meta.outputs.annotations }}\nchecksum=${{ inputs.code_checksum }}\ndistro=${{ inputs.target }}"
# target: ${{ inputs.target }}
Expand Down

0 comments on commit 5905ea3

Please sign in to comment.