Skip to content

Commit

Permalink
feat(docker build): cache image and build steps to github actions cac…
Browse files Browse the repository at this point in the history
…he (#17)

* feat(docker build): cache image and build steps to registry cache
* Configure buildx to enable docker cache
  • Loading branch information
iainsproat authored Nov 12, 2023
1 parent c39aec0 commit 2b331cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ runs:
echo "Setting the function's releaseTag to: ${RELEASE_TAG}"
echo "releaseTag=${RELEASE_TAG}" >> "$GITHUB_ENV"
- name: Set up Docker Buildx # required to enable caching of docker build
uses: docker/setup-buildx-action@v2
- name: Log in to Speckle Automate Docker registry
uses: docker/[email protected]
with:
Expand Down Expand Up @@ -108,6 +110,8 @@ runs:
tags: ${{ env.automateHost }}/${{ inputs.speckle_function_id }}:${{ env.releaseTag }}
target: ''
push: true
cache-from: type=registry,ref=${{ env.automateHost }}/${{ inputs.speckle_function_id }}:buildcache
cache-to: type=registry,ref=${{ env.automateHost }}/${{ inputs.speckle_function_id }}:buildcache,mode=max
- name: Speckle Automate function version publisher
uses: specklesystems/[email protected]
id: register_speckle_function_version
Expand Down

0 comments on commit 2b331cc

Please sign in to comment.