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