Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drone: (Cross-)build with buildx #65

Merged
merged 1 commit into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 13 additions & 80 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,93 +1,26 @@
kind: pipeline
name: amd64

platform:
os: linux
arch: amd64

steps:
- name: build
image: plugins/docker
settings:
auto_tag: true
auto_tag_suffix: amd64
repo: mazzolino/shepherd
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
exclude:
- pull_request

---
kind: pipeline
name: arm

platform:
os: linux
arch: arm64
name: default

steps:
- name: build
image: plugins/docker:linux-arm
- name: build & push
image: mazzolino/drone-docker-buildx:20
settings:
auto_tag: true
auto_tag_suffix: arm
repo: mazzolino/shepherd
platforms:
- linux/amd64
- linux/arm64
- linux/armhf
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
exclude:
- pull_request

trigger:
event:
exclude:
- pull_request
---
kind: pipeline
name: arm64

platform:
os: linux
arch: arm64

steps:
- name: build
image: plugins/docker:linux-arm64
settings:
auto_tag: true
auto_tag_suffix: arm64
repo: mazzolino/shepherd
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
exclude:
- pull_request
---
kind: pipeline
name: manifest

steps:
- name: manifest
image: plugins/manifest:1
settings:
spec: manifest.tmpl
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms:
- linux/amd64
- linux/arm
- linux/arm64

depends_on:
- amd64
- arm
- arm64
kind: signature
hmac: 38ab422a8b7ec0e95f6a92c1a224bb102b8a2ed4f37501ade35ff7a4cb29729b
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker
FROM mazzolino/docker:20

ENV SLEEP_TIME='5m'
ENV FILTER_SERVICES=''
Expand Down