Skip to content

Commit

Permalink
Issue #3448: use the GitHub actions cache
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Jul 24, 2024
1 parent fd47fae commit 9cf5678
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker_image_update_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

-
# build the image, not pushing yet, no pushing as DockerHub access is not set up yet
# Caching with Github Actions Cache, limited to 10 GB
name: Build and not push
if: steps.check.outputs.needs-updating == 'true'
uses: docker/build-push-action@v6
Expand All @@ -60,6 +61,8 @@ jobs:
GIT_COMMIT=${{ github.sha }}
target: otobo-web
tags: ${{ env.TEST_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max`

-
# otobo_first_time hasn't run yet, so /opt/otobo is still empty
Expand All @@ -78,7 +81,8 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
# finally upload, the build should be already cached
# finally upload to DockerHub
# the built image is already available in the job
name: Build and push
if: steps.check.outputs.needs-updating == 'true'
uses: docker/build-push-action@v6
Expand All @@ -93,6 +97,8 @@ jobs:
GIT_COMMIT=${{ github.sha }}
target: otobo-web
tags: ${{ env.TEST_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max`

#-
# # indicate an error when the base image has changed
Expand Down

0 comments on commit 9cf5678

Please sign in to comment.