Compare commits

...

3 Commits

Author SHA1 Message Date
a55e275825 Do dry run builds on any branch
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-30 11:18:54 -08:00
8e76fcee4a Let's try to fix this again
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-30 11:15:27 -08:00
5f161ae51b Copy all qemu files because drone is being weird
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-30 11:09:56 -08:00
3 changed files with 13 additions and 9 deletions

View File

@ -1,3 +1,4 @@
---
kind: pipeline kind: pipeline
name: linux-amd64 name: linux-amd64
@ -13,9 +14,10 @@ steps:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
dry_run: true
when: when:
branch: # branch:
- master # - master
event: event:
- push - push
- tag - tag
@ -38,10 +40,11 @@ steps:
from_secret: docker_password from_secret: docker_password
build_args: build_args:
- ARCH=arm - ARCH=arm
- REPO=arm32v6 - REPO=arm32v7
dry_run: true
when: when:
branch: # branch:
- master # - master
event: event:
- push - push
- tag - tag
@ -65,9 +68,10 @@ steps:
build_args: build_args:
- ARCH=aarch64 - ARCH=aarch64
- REPO=arm64v8 - REPO=arm64v8
dry_run: true
when: when:
branch: # branch:
- master # - master
event: event:
- push - push
- tag - tag
@ -98,4 +102,3 @@ steps:
event: event:
- push - push
- tag - tag

View File

@ -8,6 +8,7 @@ FROM ${REPO}/python:3-alpine
# Copy mutliarch file to run builds on x86_64 # Copy mutliarch file to run builds on x86_64
ARG ARCH=x86_64 ARG ARCH=x86_64
# COPY --from=qemu-user-static /usr/bin/qemu-* /usr/bin/
COPY --from=qemu-user-static /usr/bin/qemu-${ARCH}-* /usr/bin/ COPY --from=qemu-user-static /usr/bin/qemu-${ARCH}-* /usr/bin/
RUN mkdir -p /src RUN mkdir -p /src

View File

@ -14,7 +14,7 @@ build:
.PHONY: cross-build-arm .PHONY: cross-build-arm
cross-build-arm: cross-build-arm:
docker build --build-arg REPO=arm32v6 --build-arg ARCH=arm . -t ${DOCKER_TAG}-linux-arm docker build --build-arg REPO=arm32v7 --build-arg ARCH=arm . -t ${DOCKER_TAG}-linux-arm
.PHONY: cross-build-arm64 .PHONY: cross-build-arm64
cross-build-arm64: cross-build-arm64: