feat: add trigger to pipeline (#3)
Some checks failed
continuous-integration/drone Build is failing
Some checks failed
continuous-integration/drone Build is failing
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
16
.drone.yaml
16
.drone.yaml
@@ -3,6 +3,12 @@ type: docker
|
||||
|
||||
name: build-and-push-container
|
||||
|
||||
triggers:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: docker:20
|
||||
@@ -10,11 +16,6 @@ steps:
|
||||
- COMMIT_HASH=$(git rev-parse --short HEAD)
|
||||
- IMAGE_TAG=gitea.t000-n.de/t.behrendt/backupsidecar:$COMMIT_HASH
|
||||
- docker build -t $IMAGE_TAG .
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
ref:
|
||||
- refs/heads/main
|
||||
|
||||
- name: push
|
||||
image: plugins/docker
|
||||
@@ -27,8 +28,3 @@ steps:
|
||||
tags:
|
||||
- latest
|
||||
- $COMMIT_HASH
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
ref:
|
||||
- refs/heads/main
|
||||
|
||||
Reference in New Issue
Block a user