mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
Debug drone
This commit is contained in:
parent
3e3dfb86f1
commit
71afb8afff
1 changed files with 0 additions and 42 deletions
42
.drone.yml
42
.drone.yml
|
@ -1,47 +1,5 @@
|
|||
---
|
||||
|
||||
kind: pipeline
|
||||
name: build-stable-container
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: keyoxide/keyoxide
|
||||
tags: stable
|
||||
|
||||
---
|
||||
|
||||
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
|
||||
|
||||
---
|
||||
|
||||
kind: pipeline
|
||||
name: build-dev-container
|
||||
|
||||
|
|
Loading…
Reference in a new issue