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.0 KiB
YAML

2 years ago
kind: pipeline
name: default
steps:
- name: deploy
image: docker:cli
volumes:
- name: docker-socket
path: /var/run/docker.sock
2 years ago
- name: data
path: /app/data.local
2 years ago
environment:
BASE_URL: "/problemi/"
2 years ago
DATABASE_PATH: "data.local/db.local.json"
2 years ago
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
2 years ago
- name: data
host:
path: /var/lib/problemi