modify drone to brand commits before docker build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-25 15:12:34 -05:00
parent ac8bed1bad
commit 56f7f907df

View File

@@ -9,6 +9,10 @@ globals:
password:
from_secret: REGISTRY_PASSWORD
steps:
- name: brand commit before build
image: bash
commands:
- echo ${DRONE_COMMIT_SHA:0:7} > app/__commit__
- name: build app-testing
image: plugins/docker
settings:
@@ -35,6 +39,10 @@ globals:
password:
from_secret: REGISTRY_PASSWORD
steps:
- name: brand commit before build
image: bash
commands:
- echo ${DRONE_COMMIT_SHA:0:7} > app/__commit__
- name: build-app-prod
image: plugins/docker
settings:
@@ -43,7 +51,6 @@ steps:
dockerfile: ./Dockerfile
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest-prod"]
<<: *docker_creds
trigger:
branch:
- master