One works... but the other...
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:
31
.drone.yml
31
.drone.yml
@@ -118,8 +118,11 @@ steps:
|
|||||||
- name: Publish Image
|
- name: Publish Image
|
||||||
image: docker
|
image: docker
|
||||||
failure: ignore
|
failure: ignore
|
||||||
|
environment:
|
||||||
|
DOCKER_TOKEN:
|
||||||
|
from_secret: reg_token
|
||||||
commands:
|
commands:
|
||||||
- docker login git.mifi.dev
|
- 'docker login git.mifi.dev -u <token> --password-stdin'
|
||||||
- 'docker build -t git.mifi.dev/mifi/mifi/auth:latest -t git.mifi.dev/mifi/mifi/auth:${DRONE_TAG:-latest} .'
|
- 'docker build -t git.mifi.dev/mifi/mifi/auth:latest -t git.mifi.dev/mifi/mifi/auth:${DRONE_TAG:-latest} .'
|
||||||
- docker push git.mifi.dev/mifi/mifi/auth:latest
|
- docker push git.mifi.dev/mifi/mifi/auth:latest
|
||||||
volumes:
|
volumes:
|
||||||
@@ -127,19 +130,19 @@ steps:
|
|||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
- name: dockerconfig
|
- name: dockerconfig
|
||||||
path: /drone/grow/.docker/config.json
|
path: /drone/grow/.docker/config.json
|
||||||
- name: Publish Image (plugin)
|
# - name: Publish Image (plugin)
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
settings:
|
# settings:
|
||||||
auto_tag: true
|
# auto_tag: true
|
||||||
repo: git.mifi.dev/mifi/mifi/auth
|
# repo: git.mifi.dev/mifi/mifi/auth
|
||||||
registry: git.mifi.dev
|
# registry: git.mifi.dev
|
||||||
debug: true
|
# debug: true
|
||||||
ssh-agent-key:
|
# ssh-agent-key:
|
||||||
from_secret: reg_token
|
# from_secret: reg_token
|
||||||
username: <token>
|
# username: <token>
|
||||||
password:
|
# password:
|
||||||
from_secret: reg_token
|
# from_secret: reg_token
|
||||||
secrets: [reg_token]
|
# secrets: [reg_token]
|
||||||
- name: Report Image Publish Status
|
- name: Report Image Publish Status
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
Reference in New Issue
Block a user