2022-03-28 19:28:21 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: test-build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: golang:1.17.7
|
|
|
|
pull: always
|
|
|
|
commands:
|
|
|
|
- go test ./...
|
|
|
|
- sh scripts/build.sh
|
|
|
|
|
|
|
|
- name: kaniko-build
|
|
|
|
image: immawanderer/drone-kaniko:linux-amd64
|
|
|
|
pull: always
|
|
|
|
settings:
|
|
|
|
dockerfile: docker/docker/Dockerfile.linux.amd64
|
|
|
|
context: .
|
|
|
|
no_push: true
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude: [cron]
|
|
|
|
|
|
|
|
- name: docker-build
|
|
|
|
image: plugins/docker
|
|
|
|
pull: always
|
|
|
|
settings:
|
|
|
|
repo: immawanderer/drone-kaniko
|
|
|
|
tags:
|
|
|
|
- linux-amd64
|
|
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
|
|
|
daemon_off: false
|
|
|
|
dockerfile: docker/docker/Dockerfile.linux.amd64
|
|
|
|
dry_run: true
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude: [cron]
|
|
|
|
status: [success, failure]
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- "refs/heads/feature-**"
|
|
|
|
- "refs/pull/**"
|
|
|
|
- "refs/tags/**"
|
|
|
|
|
2021-04-21 02:14:05 +02:00
|
|
|
---
|
2020-11-19 20:27:09 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2022-03-14 17:49:32 +01:00
|
|
|
image: golang:1.17.7
|
2020-11-19 20:27:09 +01:00
|
|
|
commands:
|
|
|
|
- go test ./...
|
|
|
|
- sh scripts/build.sh
|
|
|
|
|
2021-04-21 02:14:05 +02:00
|
|
|
- name: docker-publish
|
2020-11-19 20:27:09 +01:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2021-04-21 02:14:05 +02:00
|
|
|
repo: immawanderer/drone-kaniko
|
|
|
|
tags:
|
|
|
|
- linux-amd64
|
|
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
2021-03-02 16:45:44 +01:00
|
|
|
daemon_off: false
|
2020-11-25 19:12:56 +01:00
|
|
|
dockerfile: docker/docker/Dockerfile.linux.amd64
|
2020-11-19 20:27:09 +01:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2021-01-29 19:39:22 +01:00
|
|
|
when:
|
|
|
|
event:
|
2021-03-02 16:45:44 +01:00
|
|
|
exclude:
|
|
|
|
- pull_request
|
2020-11-19 20:27:09 +01:00
|
|
|
|
2021-03-19 13:16:22 +01:00
|
|
|
trigger:
|
|
|
|
ref:
|
2021-04-21 02:14:05 +02:00
|
|
|
- refs/heads/dev
|
2021-03-19 13:16:22 +01:00
|
|
|
|
2021-04-21 02:14:05 +02:00
|
|
|
...
|