ci: Add debug
This commit is contained in:
parent
56ff8e2a0c
commit
ce0a5ba5e8
1 changed files with 9 additions and 3 deletions
12
.drone.yml
12
.drone.yml
|
@ -7,6 +7,12 @@ environment:
|
||||||
DOCKER_REPO: glenux/service-dolibarr
|
DOCKER_REPO: glenux/service-dolibarr
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: debug
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- echo "Repository: ${DOCKER_REPO}"
|
||||||
|
- echo "Git commit: ${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
|
||||||
- name: publish:commit_sha
|
- name: publish:commit_sha
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
# pull: never
|
# pull: never
|
||||||
|
@ -19,7 +25,7 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: DOCKERHUB_PASSWORD
|
from_secret: DOCKERHUB_PASSWORD
|
||||||
cache_from: "$${DOCKER_REPO}:latest_${DRONE_BRANCH/\\//-}"
|
cache_from: "$${DOCKER_REPO}:latest_${DRONE_BRANCH/\\//-}"
|
||||||
repo: "$${DOCKER_REPO}"
|
repo: "${DOCKER_REPO}"
|
||||||
tags: "${DRONE_COMMIT_SHA:0:8}"
|
tags: "${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
|
||||||
- name: publish:commit_branch
|
- name: publish:commit_branch
|
||||||
|
@ -33,7 +39,7 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: DOCKERHUB_PASSWORD
|
from_secret: DOCKERHUB_PASSWORD
|
||||||
cache_from: "$${DOCKER_REPO}:latest_${DRONE_BRANCH/\\//-}"
|
cache_from: "$${DOCKER_REPO}:latest_${DRONE_BRANCH/\\//-}"
|
||||||
repo: "$${DOCKER_REPO}"
|
repo: "${DOCKER_REPO}"
|
||||||
tags: "latest_${DRONE_BRANCH/\\//-}"
|
tags: "latest_${DRONE_BRANCH/\\//-}"
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
@ -47,7 +53,7 @@ steps:
|
||||||
username: "${DOCKERHUB_USERNAME}"
|
username: "${DOCKERHUB_USERNAME}"
|
||||||
password: "${DOCKERHUB_PASSWORD}"
|
password: "${DOCKERHUB_PASSWORD}"
|
||||||
cache_from: "$${DOCKER_REPO}:latest_${DRONE_BRANCH/\\//-}"
|
cache_from: "$${DOCKER_REPO}:latest_${DRONE_BRANCH/\\//-}"
|
||||||
repo: "$${DOCKER_REPO}"
|
repo: "${DOCKER_REPO}"
|
||||||
tags: latest
|
tags: latest
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
|
Loading…
Reference in a new issue