Replace rancher with portainer deployment
This commit is contained in:
parent
3390b2ed71
commit
564d9fc29b
34
.drone.yml
34
.drone.yml
|
@ -27,6 +27,9 @@ steps:
|
||||||
- ./gradlew --no-daemon --info --build-cache jib
|
- ./gradlew --no-daemon --info --build-cache jib
|
||||||
settings:
|
settings:
|
||||||
use_cache: true
|
use_cache: true
|
||||||
|
volumes:
|
||||||
|
- name: docker_config
|
||||||
|
path: /root/.docker/config.json
|
||||||
environment:
|
environment:
|
||||||
GRADLE_USER_HOME: /drone/src/.gradle-cache
|
GRADLE_USER_HOME: /drone/src/.gradle-cache
|
||||||
ORG_GRADLE_PROJECT_DOCKER_REGISTRY:
|
ORG_GRADLE_PROJECT_DOCKER_REGISTRY:
|
||||||
|
@ -60,21 +63,19 @@ steps:
|
||||||
from_secret: GITHUB_PUSH_TOKEN
|
from_secret: GITHUB_PUSH_TOKEN
|
||||||
|
|
||||||
- name: publish-to-production
|
- name: publish-to-production
|
||||||
image: fabn/rancher-cli
|
image: maniack/drone-portainer
|
||||||
commands:
|
settings:
|
||||||
- cd infra/$${STACK}
|
portainer:
|
||||||
- echo "key:${RANCHER_ACCESS_KEY}"
|
from_secret: PORTAINER_URL
|
||||||
- echo "secret:${RANCHER_SECRET_KEY}"
|
username:
|
||||||
- rancher up -d -c --upgrade $${SERVICE}
|
from_secret: PORTAINER_USER
|
||||||
|
password:
|
||||||
|
from_secret: PORTAINER_PASSWORD
|
||||||
|
endpoint: ahlroos.me
|
||||||
|
stack: ahlroos_me
|
||||||
|
file: infra/ahlroos.me/docker-compose.yml
|
||||||
environment:
|
environment:
|
||||||
STACK: ahlroos.me
|
DEBUG: true
|
||||||
SERVICE: pdf-parsers
|
|
||||||
RANCHER_URL:
|
|
||||||
from_secret: RANCHER_URL
|
|
||||||
RANCHER_ACCESS_KEY:
|
|
||||||
from_secret: RANCHER_ACCESS_KEY
|
|
||||||
RANCHER_SECRET_KEY:
|
|
||||||
from_secret: RANCHER_SECRET_KEY
|
|
||||||
|
|
||||||
- name: save-infra
|
- name: save-infra
|
||||||
image: drone/git
|
image: drone/git
|
||||||
|
@ -96,3 +97,8 @@ trigger:
|
||||||
ref:
|
ref:
|
||||||
include:
|
include:
|
||||||
- refs/tags/**
|
- refs/tags/**
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: docker_config
|
||||||
|
host:
|
||||||
|
path: /root/.docker/config.json
|
Loading…
Reference in New Issue