Skip to content

Commit

Permalink
move cache further up
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Jun 1, 2024
1 parent d49574d commit d5599c4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/dockerx-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ jobs:
#with:
# install: true

- name: Cache Docker layers
uses: actions/cache@v4
id: cache
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Inspect builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
Expand Down Expand Up @@ -63,19 +72,10 @@ jobs:
--build-arg VERSION=${VERSION} \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=${GITHUB_SHA::8} \
#--cache-from "type=local,src=/tmp/.buildx-cache" \
#--cache-to "type=local,dest=/tmp/.buildx-cache" \
--cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \
${TAGS} --file Dockerfile .
#- name: Cache Docker layers
# uses: actions/cache@v4
# id: cache
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildx-

- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin

Expand Down

0 comments on commit d5599c4

Please sign in to comment.