mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Dbug drone
This commit is contained in:
parent
69c5da8e00
commit
8cc8c1128b
1 changed files with 41 additions and 0 deletions
41
.drone.yml
41
.drone.yml
|
@ -14,6 +14,41 @@ steps:
|
||||||
repo: keyoxide/keyoxide
|
repo: keyoxide/keyoxide
|
||||||
tags: stable
|
tags: stable
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- 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:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build-stable-container
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -30,6 +65,12 @@ steps:
|
||||||
repo: keyoxide/keyoxide
|
repo: keyoxide/keyoxide
|
||||||
tags: dev
|
tags: dev
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- dev
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
|
Loading…
Reference in a new issue