Drone optimization
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Elias Jansson
2025-06-19 12:18:56 +02:00
parent a4229594bf
commit 2504fab3e7

View File

@@ -7,6 +7,7 @@ volumes:
host:
path: /var/run/docker.sock
steps:
- name: docker-build
image: docker:24
volumes:
@@ -17,12 +18,12 @@ volumes:
- docker buildx create --use --driver docker-container || true
- docker login 192.168.1.9:3000 -u ${GITEA_USERNAME} -p ${GITEA_TOKEN}
- docker buildx build \
--builder default \
--tag 192.168.1.9:3000/tai/aberwyn/aberwyn:latest \
--tag 192.168.1.9:3000/tai/aberwyn/aberwyn:${DRONE_COMMIT_SHA:0:7} \
--cache-from=type=registry,ref=192.168.1.9:3000/tai/aberwyn/aberwyn:buildcache \
--cache-to=type=registry,ref=192.168.1.9:3000/tai/aberwyn/aberwyn:buildcache,mode=max \
--push \
--builder default \
--allow insecure \
-f Aberwyn/Dockerfile .