Test Docker build & cleanup
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Janic Voser 2023-03-10 23:53:02 +01:00
parent e3d86ac26b
commit 7dc8a5a38f
2 changed files with 17 additions and 6 deletions

View File

@ -37,12 +37,9 @@ steps:
# Build Containers for each architecture
- name: docker-build-image-amd64
image: thegeeklab/drone-docker-buildx
volumes:
image: plugins/docker # Check Entrypoint volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: bin
path: /binaries
privileged: true
settings:
username:
@ -59,12 +56,26 @@ steps:
depends_on:
- "go-build-bin-amd64"
# Run go tests
- name: binary-cleanup
image: alpine:latest
volumes:
- name: bin
path: /binaries
commands:
- rm -rf /binaries/*
when:
status:
- failure
- success
# Volumes to mount between steps
volumes:
- name: deps
temp: {}
- name: bin
temp: {}
host:
path: /tmp/bin
- name: docker_socket
host:
path: /var/run/docker.sock

View File

@ -2,6 +2,6 @@
FROM alpine:latest
# Copy Binary (Currently Just a file)
COPY /binaries/app /app
COPY /tmp/bin/app /app
CMD ["/app"]