Skip to content

Commit

Permalink
add a cross-compile step for arm64/v8. curious to see if this will wo…
Browse files Browse the repository at this point in the history
…rk. see #64
  • Loading branch information
Svedrin committed Oct 5, 2024
1 parent 25cd65e commit 798abec
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,31 @@ steps:
from_secret: docker-registry-pw
cache_from: "svedrin/meshping:latest-amd64"

- name: set "latest-arm64-v8" tag
image: alpine:3.20
commands:
- echo -n "latest-arm64-v8" > .tags
when:
branch: master

- name: set "staging-arm64-v8" tag
image: alpine:3.20
commands:
- echo -n "staging-amd64-v8" > .tags
when:
branch: staging

- name: build docker image for arm64-v8
image: owncloudci/drone-docker-buildx
privileged: true
settings:
repo: svedrin/meshping
username: svedrin
password:
from_secret: docker-registry-pw
cache_from: "svedrin/meshping:latest-arm64-v8"
platforms: linux/arm64/v8

trigger:
branch:
- master
Expand Down Expand Up @@ -234,6 +259,6 @@ depends_on:

---
kind: signature
hmac: fec4c321325389b797495c046e9fc3e905e56e9c96af87a9c56a23adff12764a
hmac: 0d1cfe329b8738a3bd54c50c22e8d31a4ad2345d1473fc823b3e89daeadc9ca1

...
12 changes: 12 additions & 0 deletions docker-manifest-latest.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ manifests:
os: linux
variant: v7

- image: svedrin/meshping:latest-arm64-v8
platform:
architecture: arm64
os: linux
variant: v8

{{/equal}}
{{#equal build.branch "staging"}}

Expand All @@ -33,4 +39,10 @@ manifests:
os: linux
variant: v7

- image: svedrin/meshping:{{build.branch}}-arm64-v8
platform:
architecture: arm64
os: linux
variant: v8

{{/equal}}

0 comments on commit 798abec

Please sign in to comment.