fix: Remove docker image caching
Some checks failed
ci / docker-build-and-test (pull_request) Failing after 7m28s

This commit is contained in:
Brock Allen
2024-03-04 06:40:51 +00:00
parent 39bc8ca457
commit 7c5f27d83c

View File

@@ -8,36 +8,17 @@ on:
schedule:
- cron: '0 1 * * 0'
# https://docs.docker.com/build/ci/github-actions/share-image-jobs/
# just using caches instead of artifact upload.
jobs:
docker-build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: actions/setup-go@v3
with:
go-version: '1.20'
-
name: Create docker cache folder
run: mkdir -p /tmp/docker
-
name: Hash dockerfile
id: dockerfile-hash
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
with:
patterns: builder.Dockerfile
-
name: Restore docker image
id: cache-docker
uses: actions/cache@v3
with:
path: /tmp/docker
key: ${{ runner.os }}-docker-${{ steps.dockerfile-hash.outputs.hash }}
-
name: Build docker builder-image
if: steps.cache-docker.outputs.cache-hit != 'true'
uses: docker/build-push-action@v4
with:
context: .
@@ -47,7 +28,6 @@ jobs:
outputs: type=docker,dest=/tmp/docker/${{ runner.os }}-builder-image.tar
-
name: Upload docker image
if: steps.cache-docker.outputs.cache-hit != 'true'
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}-docker-${{ steps.dockerfile-hash.outputs.hash }}