mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Update drone dev pipeline
This commit is contained in:
parent
608e10cf43
commit
c9279dce41
1 changed files with 16 additions and 6 deletions
22
.drone.yml
22
.drone.yml
|
@ -28,15 +28,25 @@ type: exec
|
||||||
name: deploy to dev
|
name: deploy to dev
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: composer
|
- name: build docker container
|
||||||
commands:
|
commands:
|
||||||
- composer install
|
- docker build -t keyoxide/keyoxide:dev ./
|
||||||
- name: deploy to server
|
- name: push to docker hub
|
||||||
|
commands:
|
||||||
|
- docker push keyoxide/keyoxide:dev
|
||||||
|
- name: pull docker container
|
||||||
|
commands:
|
||||||
|
- docker pull keyoxide/keyoxide:dev
|
||||||
|
- name: stop and remove existing docker container
|
||||||
|
commands:
|
||||||
|
- docker stop keyoxide-web
|
||||||
|
- docker rm keyoxide-web
|
||||||
|
- name: run new docker container
|
||||||
environment:
|
environment:
|
||||||
DEPLOY_COMMAND:
|
TWITTER_API_AUTH:
|
||||||
from_secret: deploy_command_dev
|
from_secret: twitter_api_auth
|
||||||
commands:
|
commands:
|
||||||
- $${DEPLOY_COMMAND}
|
- docker run -d -e "TWITTER_API_AUTH=$${TWITTER_API_AUTH}" --name keyoxide-web -h keyoxide --network dc_web keyoxide-web
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|
Loading…
Reference in a new issue