This commit is contained in:
parent
ab07d57e85
commit
9132c4a51b
46
.drone.yml
46
.drone.yml
@ -1,3 +1,49 @@
|
||||
---
|
||||
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/**"
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM gcr.io/kaniko-project/executor:v1.8.0-debug
|
||||
|
||||
ADD release/linux/amd64/kaniko-docker /kaniko/
|
||||
COPY release/linux/amd64/kaniko-docker /kaniko/
|
||||
ENTRYPOINT ["/kaniko/kaniko-docker"]
|
||||
|
Loading…
Reference in New Issue
Block a user