Skip to content

Commit

Permalink
feat: Use Docker buildx for Woodpecker
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcen committed Jul 27, 2024
1 parent 74f6b0a commit 0b32e0f
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
kind: pipeline
type: docker
name: default
when:
- branch: main
event:
- push
- manual
- cron

steps:
- name: Publish Container Image
image: plugins/docker
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/amd64,linux/arm/v6,linux/arm64/v8
# Replace this with your own Git host
repo: git.mattcen.com/${CI_REPO}
# Replace this with your own Git host
registry: git.mattcen.com
username: $DRONE_REPO_OWNER
tags: latest
username: ${CI_REPO_OWNER}
password:
from_secret: DOCKER_PASSWORD
# Replace this with your own Git host
repo: git.mattcen.com/${DRONE_REPO}
context: django/
dockerfile: django/Dockerfile
# Replace this with your own Git host
cache_from: git.mattcen.com/${DRONE_REPO}

trigger:
branch:
- main
cache_from: type=registry,ref=git.mattcen.com/${DRONE_REPO}:main
cache_to: type=registry,ref=git.mattcen.com/${DRONE_REPO}:main

0 comments on commit 0b32e0f

Please sign in to comment.