Add Drone

pull/2/head
Francesco Minnocci 2 years ago
parent 06ce334dc2
commit e7c4f193fc
Signed by: BachoSeven
GPG Key ID: 2BE4AB7FDAD828A4

@ -0,0 +1,45 @@
kind: pipeline
name: default
steps:
- name: deploy
image: docker:cli
volumes:
- name: docker-socket
path: /var/run/docker.sock
environment:
BASE_URL: "/problemi/"
DATABASE_PATH:
from_secret: database_path
OAUTH_CLIENT_ID:
from_secret: oauth_client_id
OAUTH_CLIENT_SECRET:
from_secret: oauth_client_secret
OAUTH_AUTH_URL:
from_secret: oauth_auth_url
OAUTH_TOKEN_HOST:
from_secret: oauth_token_host
OAUTH_TOKEN_PATH:
from_secret: oauth_token_path
OAUTH_REDIRECT_URL:
from_secret: oauth_redirect_url
OAUTH_USER_INFO_URL:
from_secret: oauth_user_info_url
OAUTH_SCOPES:
from_secret: oauth_scopes
commands:
- docker build -t problemi .
- docker rm -f problemi
- docker run -d -p 127.240.211.76:1112:3000 --restart always --name problemi problemi
trigger:
branch:
- main
event:
- push
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
Loading…
Cancel
Save