[ci] feat: try to not cache docker build
Some checks failed
Build and Publish / Build (push) Failing after 4s
Build and Publish / Deployment (push) Has been skipped

This commit is contained in:
Simon Cornet 2024-08-26 17:54:08 +02:00
parent b675ff7115
commit f353645575

View File

@ -34,9 +34,17 @@ jobs:
context: '.'
file: 'Dockerfile.linux.amd64'
push: true
cache: false
tags: |
cr.simoncor.net/siempie/simoncor-net:latest
tags: 'cr.simoncor.net/siempie/simoncor-net:latest'
cache-from: 'type=local,src=/tmp/.buildx-cache'
cache-to: 'type=local,dest=/tmp/.buildx-cache-new,mode=max'
# move cache - temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
# ansible deployment