init commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
DOMAIN: "{{sensitive_data}}"
|
||||
|
||||
before_script:
|
||||
- echo "Setting up environment..."
|
||||
- export $(grep -v '^#' .env.template | xargs)
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
services:
|
||||
- docker:dind
|
||||
tags:
|
||||
- vps
|
||||
script:
|
||||
- echo "Deploying application..."
|
||||
- docker compose --env-file .env.template -f docker-compose.yml up -d --build --remove-orphans
|
||||
only:
|
||||
- master
|
||||
Reference in New Issue
Block a user