surtur
73e95f29d3
* rm arm/arm64/gcr/ecr related build instructions in build.sh and .drone.ml, only build for amd64 * change autotag to manually specified tags (2 static, one dynamic) * change the branch referenced in .drone.yml as we're using dev by default * module path is now git.dotya.ml/wanderer/drone-kaniko/*
36 lines
565 B
YAML
36 lines
565 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: golang
|
|
commands:
|
|
- go test ./...
|
|
- sh scripts/build.sh
|
|
|
|
- name: docker-publish
|
|
image: plugins/docker
|
|
settings:
|
|
repo: immawanderer/drone-kaniko
|
|
tags:
|
|
- linux-amd64
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
|
daemon_off: false
|
|
dockerfile: docker/docker/Dockerfile.linux.amd64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
when:
|
|
event:
|
|
exclude:
|
|
- pull_request
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/dev
|
|
|
|
...
|