mirror of
https://github.com/drone-plugins/github-actions
synced 2024-11-15 02:56:25 +01:00
35 lines
572 B
YAML
35 lines
572 B
YAML
kind: pipeline
|
|
type: vm
|
|
name: default
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
pool:
|
|
use: ubuntu
|
|
|
|
steps:
|
|
- name: build
|
|
image: golang:1.19
|
|
commands:
|
|
- go test ./...
|
|
- sh scripts/build.sh
|
|
|
|
- name: publish
|
|
image: plugins/docker
|
|
pull: if-not-exists
|
|
settings:
|
|
repo: plugins/github-actions
|
|
dockerfile: docker/Dockerfile.linux.amd64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-amd64
|
|
trigger:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
- refs/pull/**
|