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
49 lines
1.0 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 -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
|
|
- name: data
|
|
host:
|
|
path: /var/lib/problemi
|