Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
ci: remove docker layer caching because i CANNOT MAKE THIS WORK
Browse files Browse the repository at this point in the history
  • Loading branch information
upsetbit committed May 12, 2022
1 parent af80862 commit 4cba7f0
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/actions/build-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,13 @@ runs:
username: caian
password: ${{ inputs.dockerhub-token }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ env.cache-key }}
restore-keys: ${{ env.cache-key }}
env:
cache-key: buildx-image-${{ inputs.tag-suffix }}

- name: Build and push "${{ inputs.tag-suffix }}" image
if: inputs.push-latest == 'no'
uses: docker/build-push-action@v2
with:
context: ${{ inputs.path }}
push: true
tags: ${{ inputs.tagged-name }}-${{ inputs.tag-suffix }}
builder: ${{ steps.buildx.outputs.name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Push "${{ inputs.tag-suffix }}" image with "latest" tag
if: inputs.push-latest == 'yes'
Expand All @@ -74,6 +58,3 @@ runs:
context: ${{ inputs.path }}
push: true
tags: ${{ inputs.image-name }}:latest
builder: ${{ steps.buildx.outputs.name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

0 comments on commit 4cba7f0

Please sign in to comment.