Drone optimization

This commit is contained in:
Elias Jansson
2026-01-24 16:52:55 +01:00
parent 09a83323d0
commit 200fa4917a
+2 -1
View File
@@ -7,6 +7,7 @@ volumes:
host: host:
path: /var/run/docker.sock path: /var/run/docker.sock
steps:
- name: docker-build - name: docker-build
image: docker:24 image: docker:24
volumes: volumes:
@@ -17,12 +18,12 @@ volumes:
- docker buildx create --use --driver docker-container || true - docker buildx create --use --driver docker-container || true
- docker login 192.168.1.9:3000 -u ${GITEA_USERNAME} -p ${GITEA_TOKEN} - docker login 192.168.1.9:3000 -u ${GITEA_USERNAME} -p ${GITEA_TOKEN}
- docker buildx build \ - docker buildx build \
--builder default \
--tag 192.168.1.9:3000/tai/aberwyn/aberwyn:latest \ --tag 192.168.1.9:3000/tai/aberwyn/aberwyn:latest \
--tag 192.168.1.9:3000/tai/aberwyn/aberwyn:${DRONE_COMMIT_SHA:0:7} \ --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-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 \ --cache-to=type=registry,ref=192.168.1.9:3000/tai/aberwyn/aberwyn:buildcache,mode=max \
--push \ --push \
--builder default \
--allow insecure \ --allow insecure \
-f Aberwyn/Dockerfile . -f Aberwyn/Dockerfile .