modify drone to brand commits before docker build
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user