This commit is contained in:
52
.drone.yml
52
.drone.yml
@@ -100,32 +100,49 @@ steps:
|
|||||||
# volumes:
|
# volumes:
|
||||||
# - name: npmrc
|
# - name: npmrc
|
||||||
# path: /drone/grow/.npmrc
|
# path: /drone/grow/.npmrc
|
||||||
- name: Report NPM Publish Status
|
# - name: Report NPM Publish Status
|
||||||
image: plugins/webhook
|
# image: plugins/webhook
|
||||||
settings:
|
# settings:
|
||||||
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
# urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
||||||
content_type: application/json
|
# content_type: application/json
|
||||||
template: |
|
# template: |
|
||||||
{
|
# {
|
||||||
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
# "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||||
"text": "[{{ repo.name }} - New npm package release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
# "text": "[{{ repo.name }} - New npm package release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
"username":"DroneBot"
|
# "username":"DroneBot"
|
||||||
}
|
# }
|
||||||
when:
|
# when:
|
||||||
status:
|
# status:
|
||||||
- success
|
# - success
|
||||||
- failure
|
# - failure
|
||||||
- name: Publish Image
|
- name: Publish Image
|
||||||
image: docker
|
image: docker
|
||||||
commands:
|
commands:
|
||||||
# - 'docker login git.mifi.dev'
|
- 'docker login --username $USERNAME --password $PASSWORD git.mifi.dev'
|
||||||
- '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
|
||||||
|
enviromnment:
|
||||||
|
USERNAME:
|
||||||
|
from_secret: registry_username
|
||||||
|
PASSWORD:
|
||||||
|
from_secret: registry_password
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
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)
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
auto_tag: true
|
||||||
|
repo: git.mifi.dev/mifi/mifi/auth
|
||||||
|
registry: git.mifi.dev
|
||||||
|
username:
|
||||||
|
from_secret: registry_username
|
||||||
|
password:
|
||||||
|
from_secret: registry_password
|
||||||
|
ssh-agent-key:
|
||||||
|
from_secret: gitea_token
|
||||||
- name: Report Image Publish Status
|
- name: Report Image Publish Status
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
@@ -142,9 +159,6 @@ steps:
|
|||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
image_pull_secrets:
|
|
||||||
- dockerconfig
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockerconfig
|
- name: dockerconfig
|
||||||
host:
|
host:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ services:
|
|||||||
- docknet
|
- docknet
|
||||||
volumes:
|
volumes:
|
||||||
- '/volume1/docker/labs/auth/mongo:/data/db'
|
- '/volume1/docker/labs/auth/mongo:/data/db'
|
||||||
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
|
# - ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: mongo:latest
|
image: mongo:latest
|
||||||
auth-service:
|
auth-service:
|
||||||
|
|||||||
Reference in New Issue
Block a user