mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-23 07:19:28 -07:00
Remove server deployment from CI/CD
This commit is contained in:
parent
661f703560
commit
ccad3aa57a
1 changed files with 0 additions and 56 deletions
56
.drone.yml
56
.drone.yml
|
@ -48,59 +48,3 @@ trigger:
|
||||||
- dev
|
- dev
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
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:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build-stable-container
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: pipeline
|
|
||||||
type: exec
|
|
||||||
name: deploy-dev
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: pull docker container
|
|
||||||
commands:
|
|
||||||
- docker pull keyoxide/keyoxide:dev
|
|
||||||
- name: stop and remove existing docker container
|
|
||||||
commands:
|
|
||||||
- docker stop keyoxide-dev || true && docker rm keyoxide-dev || 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-dev -h keyoxide --network dc_web keyoxide/keyoxide:dev
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- dev
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build-dev-container
|
|
||||||
|
|
Loading…
Reference in a new issue