diff options
author | 2020-11-18 22:39:04 +0100 | |
---|---|---|
committer | 2020-11-18 22:39:04 +0100 | |
commit | 843a02fd31099f9f7064f8516847d01fcd7a603b (patch) | |
tree | 45835e36f7317737485eb85150305356af078ca7 | |
parent | Disable load in buildx step (diff) |
Second build to test caching
-rw-r--r-- | .github/workflows/lint-test-build-push.yaml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/lint-test-build-push.yaml b/.github/workflows/lint-test-build-push.yaml index bd2f622..3eb0739 100644 --- a/.github/workflows/lint-test-build-push.yaml +++ b/.github/workflows/lint-test-build-push.yaml @@ -14,7 +14,7 @@ jobs: # Determine whether or not we should build the # final production image and push it to GHCR. production_build: ${{ github.event_name != 'pull_request' && - github.ref == 'sebastiaan/backend/test-repository-caching' }} + github.ref == 'refs/heads/sebastiaan/backend/test-repository-caching' }} steps: # Create a short SHA-tag to tag built images @@ -142,7 +142,7 @@ jobs: with: context: . file: ./docker/Dockerfile - push: false + push: true cache-from: | ghcr.io/python-discord/snekbox-venv:${{ steps.sha_tag.outputs.tag }} ghcr.io/python-discord/snekbox-base:latest @@ -164,7 +164,7 @@ jobs: context: . file: ./docker/Dockerfile target: base - push: false + push: true cache-from: | ghcr.io/python-discord/snekbox-base:latest cache-to: type=inline @@ -179,7 +179,7 @@ jobs: context: . file: ./docker/Dockerfile target: venv - push: false + push: true cache-from: | ghcr.io/python-discord/snekbox-base:latest ghcr.io/python-discord/snekbox-venv:latest |