diff --git a/.drone.yml b/.drone.yml index 68035f6..0a701c3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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