4 Commits

Author SHA1 Message Date
70fb02c0b0 Merge branch 'feat-include-commit-hash-in-image-tag'
Some checks failed
continuous-integration/drone Build is failing
2023-09-20 22:07:51 +02:00
a9e0f04b8e Merge branch 'main' into feat-include-commit-hash-in-image-tag 2023-09-20 22:06:38 +02:00
b05f507993 feat: add commit hash to image tag 2023-09-20 22:02:33 +02:00
ca32c5a041 feat: add trigger to pipeline 2023-09-20 21:58:23 +02:00

View File

@@ -11,11 +11,9 @@ triggers:
steps: steps:
- name: build - name: build
image: docker:20 image: plugins/docker
commands: commands:
- COMMIT_HASH=$(git rev-parse --short HEAD) - docker build -t gitea.t000-n.de/t.behrendt/backupsidecar:${DRONE_COMMIT:0:8} .
- IMAGE_TAG=gitea.t000-n.de/t.behrendt/backupsidecar:$COMMIT_HASH
- docker build -t $IMAGE_TAG .
- name: push - name: push
image: plugins/docker image: plugins/docker
@@ -27,4 +25,4 @@ steps:
repo: gitea.t000-n.de/t.behrendt/backupsidecar repo: gitea.t000-n.de/t.behrendt/backupsidecar
tags: tags:
- latest - latest
- $COMMIT_HASH - ${DRONE_COMMIT:0:8}