2020-06-25 10:11:33 -06:00
|
|
|
---
|
|
|
|
|
2020-08-09 07:01:29 -06:00
|
|
|
kind: pipeline
|
|
|
|
name: build-stable-container
|
|
|
|
|
|
|
|
steps:
|
2020-08-09 07:15:14 -06:00
|
|
|
- name: build stable container
|
2020-08-09 08:14:05 -06:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: keyoxide/keyoxide
|
|
|
|
tags: stable
|
|
|
|
- name: build tag container
|
2020-08-09 07:01:29 -06:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: keyoxide/keyoxide
|
2020-08-09 07:15:14 -06:00
|
|
|
auto_tag: true
|
2020-08-09 08:06:42 -06:00
|
|
|
tags: stable
|
2020-08-09 07:01:29 -06:00
|
|
|
|
2020-08-09 07:02:29 -06:00
|
|
|
trigger:
|
|
|
|
event:
|
2020-08-09 07:15:14 -06:00
|
|
|
- tag
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
name: build-dev-container
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build dev container
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: keyoxide/keyoxide
|
|
|
|
tags: dev
|
|
|
|
|
|
|
|
trigger:
|
2020-08-09 07:24:49 -06:00
|
|
|
branch:
|
|
|
|
- dev
|
2020-08-09 07:15:14 -06:00
|
|
|
event:
|
2020-08-09 07:24:49 -06:00
|
|
|
- push
|
2020-08-09 07:02:29 -06:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
|
|
|
name: deploy-stable
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: pull docker container
|
|
|
|
commands:
|
|
|
|
- docker pull keyoxide/keyoxide:stable
|
|
|
|
- name: stop and remove existing docker container
|
|
|
|
commands:
|
|
|
|
- docker stop keyoxide || true && docker rm keyoxide || true
|
|
|
|
- name: run new docker container
|
|
|
|
environment:
|
|
|
|
TWITTER_API_AUTH:
|
|
|
|
from_secret: twitter_api_auth
|
|
|
|
commands:
|
|
|
|
- docker run -d -e "TWITTER_API_AUTH=$${TWITTER_API_AUTH}" --name keyoxide -h keyoxide --network dc_web keyoxide/keyoxide:stable
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
2020-08-09 07:15:14 -06:00
|
|
|
- tag
|
2020-08-09 07:02:29 -06:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build-stable-container
|
|
|
|
|
2020-08-09 07:01:29 -06:00
|
|
|
---
|
|
|
|
|
2020-06-25 10:11:33 -06:00
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
2020-08-09 04:26:39 -06:00
|
|
|
name: deploy-dev
|
2020-06-25 10:11:33 -06:00
|
|
|
|
|
|
|
steps:
|
2020-08-09 04:07:35 -06:00
|
|
|
- name: pull docker container
|
|
|
|
commands:
|
|
|
|
- docker pull keyoxide/keyoxide:dev
|
|
|
|
- name: stop and remove existing docker container
|
|
|
|
commands:
|
2020-08-09 06:40:08 -06:00
|
|
|
- docker stop keyoxide-dev || true && docker rm keyoxide-dev || true
|
2020-08-09 04:07:35 -06:00
|
|
|
- name: run new docker container
|
2020-06-25 10:11:33 -06:00
|
|
|
environment:
|
2020-08-09 04:07:35 -06:00
|
|
|
TWITTER_API_AUTH:
|
|
|
|
from_secret: twitter_api_auth
|
2020-06-25 10:11:33 -06:00
|
|
|
commands:
|
2020-08-09 06:40:08 -06:00
|
|
|
- docker run -d -e "TWITTER_API_AUTH=$${TWITTER_API_AUTH}" --name keyoxide-dev -h keyoxide --network dc_web keyoxide/keyoxide:dev
|
2020-06-25 10:11:33 -06:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- dev
|
2020-07-04 07:36:38 -06:00
|
|
|
event:
|
|
|
|
- push
|
2020-08-09 06:54:35 -06:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build-dev-container
|