This repository has been archived on 2025-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
drone-runner-podman/.drone.yml
2023-10-25 12:05:27 +02:00

78 lines
1.2 KiB
YAML

kind: pipeline
type: docker
name: testing
platform:
os: linux
arch: arm64
steps:
- name: test
image: golang:1.16
commands:
- go test -cover ./...
volumes:
- name: go
path: /go
- name: build
image: golang:1.16
commands:
- sh scripts/build.sh
volumes:
- name: go
path: /go
volumes:
- name: go
temp: {}
---
kind: pipeline
type: docker
name: linux-arm64
platform:
os: linux
arch: arm64
steps:
- name: environment
image: golang:1.16
pull: always
environment:
CGO_ENABLED: "0"
commands:
- go version
- go env
- name: build
image: golang:1.16
environment:
CGO_ENABLED: "0"
commands:
- go build -o release/linux/arm64/drone-runner-docker
- name: publish
image: plugins/docker
pull: if-not-exists
settings:
repo: cr.wks/drone/drone-runner-docker
registry: http://cr.wks
insecure: true
auto_tag: true
auto_tag_suffix: linux-arm64
dockerfile: docker/Dockerfile.linux.arm64
when:
ref:
- refs/heads/master
- refs/tags/*
depends_on:
- testing
trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**