You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB
YAML

kind: pipeline
name: default
steps:
- name: deploy
image: docker:cli
volumes:
- name: docker-socket
path: /var/run/docker.sock
- name: data
path: /app/data.local
environment:
BASE_URL: "/problemi/"
DATABASE_PATH: "data.local/db.local.json"
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 --build-arg BASE_URL -t problemi .
- docker rm -f problemi
- docker run -e DATABASE_PATH -e OAUTH_CLIENT_ID -e OAUTH_CLIENT_SECRET -e OAUTH_AUTH_URL -e OAUTH_TOKEN_HOST -e OAUTH_TOKEN_PATH -e OAUTH_REDIRECT_URL -e OAUTH_USER_INFO_URL -e OAUTH_SCOPES -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
- name: data
host:
path: /var/lib/problemi