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.

44 lines
1.2 KiB
YAML

2 years ago
kind: pipeline
name: default
steps:
- name: deploy
image: docker:cli
volumes:
- name: docker-socket
path: /var/run/docker.sock
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:
2 years ago
- docker build --build-arg BASE_URL="$BASE_URL" -t problemi .
2 years ago
- docker rm -f problemi
- docker run -v /var/lib/problemi:/app/data.local -e BASE_URL -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
2 years ago
trigger:
branch:
- main
event:
- push
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock