Skip to content

Commit

Permalink
Restore GHA cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Oct 13, 2021
1 parent 52a17e2 commit b5ec7c4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/actions/smoke-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@ runs:
with:
file: build/Dockerfile
context: '.'
# Disable cache until https://github.com/docker/buildx/issues/681 is fixed
# cache-from: type=gha,scope=${{ inputs.image }}
# cache-to: type=gha,scope=${{ inputs.image }},mode=max
cache-from: type=gha,scope=${{ inputs.image }}
cache-to: type=gha,scope=${{ inputs.image }},mode=max
target: goreleaser
tags: 'docker.io/nginx/nginx-ingress:${{ inputs.image }}-${{ github.sha }}'
load: true
pull: true
build-args: BUILD_OS=${{ inputs.image }}

- name: Build Test-Runner Container
uses: docker/build-push-action@v2
with:
file: tests/docker/Dockerfile
context: '.'
# Disable cache until https://github.com/docker/buildx/issues/681 is fixed
# cache-from: type=gha,scope=test-runner
# cache-to: type=gha,scope=test-runner,mode=max
cache-from: type=gha,scope=test-runner
cache-to: type=gha,scope=test-runner,mode=max
tags: test-runner:${{ github.sha }}
pull: true
load: true

- name: Deploy Kubernetes
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ jobs:
with:
file: build/Dockerfile
context: '.'
# Disable cache until https://github.com/docker/buildx/issues/681 is fixed
# cache-from: type=gha
# cache-to: type=gha,mode=max
cache-from: type=gha,scope=debian
cache-to: type=gha,scope=debian,mode=max
target: goreleaser
tags: nginx-ingress:${{ github.sha }}
pull: true
load: true
build-args: BUILD_OS=debian
- name: Deploy Kubernetes
Expand Down Expand Up @@ -322,9 +322,8 @@ jobs:
with:
file: build/Dockerfile
context: '.'
# Disable cache until https://github.com/docker/buildx/issues/681 is fixed
# cache-from: type=gha
# cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,scope=${{ matrix.image }},mode=max
target: goreleaser
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/update-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,14 @@ jobs:
with:
file: build/Dockerfile
context: '.'
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,scope=${{ matrix.image }},mode=max
target: goreleaser
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ matrix.platforms }}
push: true
pull: true
build-args: |
BUILD_OS=${{ matrix.image }}
IC_VERSION=v${{ needs.variables.outputs.kic-tag }}
Expand Down

0 comments on commit b5ec7c4

Please sign in to comment.