Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
a55e275825 | |||
8e76fcee4a | |||
5f161ae51b |
19
.drone.yml
19
.drone.yml
@ -1,3 +1,4 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: linux-amd64
|
||||
|
||||
@ -13,9 +14,10 @@ steps:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dry_run: true
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
# branch:
|
||||
# - master
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
@ -38,10 +40,11 @@ steps:
|
||||
from_secret: docker_password
|
||||
build_args:
|
||||
- ARCH=arm
|
||||
- REPO=arm32v6
|
||||
- REPO=arm32v7
|
||||
dry_run: true
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
# branch:
|
||||
# - master
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
@ -65,9 +68,10 @@ steps:
|
||||
build_args:
|
||||
- ARCH=aarch64
|
||||
- REPO=arm64v8
|
||||
dry_run: true
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
# branch:
|
||||
# - master
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
@ -98,4 +102,3 @@ steps:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
|
@ -8,6 +8,7 @@ FROM ${REPO}/python:3-alpine
|
||||
|
||||
# Copy mutliarch file to run builds on 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/
|
||||
|
||||
RUN mkdir -p /src
|
||||
|
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ build:
|
||||
|
||||
.PHONY: 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
|
||||
cross-build-arm64:
|
||||
|
Loading…
Reference in New Issue
Block a user