This commit is contained in:
parent
dcaa4e1a9c
commit
19062e486c
1 changed files with 7 additions and 5 deletions
12
.drone.yml
12
.drone.yml
|
@ -3,12 +3,14 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
environment:
|
||||||
|
DOCKER_REPO: glenux/service-dolibarr
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: debug
|
- name: debug
|
||||||
image: alpine
|
image: alpine
|
||||||
environment:
|
environment:
|
||||||
DOCKER_REPO: glenux/service-dolibarr
|
|
||||||
commands:
|
commands:
|
||||||
- 'echo "Repository: $${DOCKER_REPO}"'
|
- 'echo "Repository: $${DOCKER_REPO}"'
|
||||||
- 'echo "Git commit: ${DRONE_COMMIT_SHA:0:8}"'
|
- 'echo "Git commit: ${DRONE_COMMIT_SHA:0:8}"'
|
||||||
|
@ -26,8 +28,8 @@ steps:
|
||||||
from_secret: DOCKERHUB_USERNAME
|
from_secret: DOCKERHUB_USERNAME
|
||||||
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
|
||||||
|
@ -41,7 +43,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:
|
||||||
|
@ -55,7 +57,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