This commit is contained in:
parent
6680cc2a6d
commit
e284ff15f4
1 changed files with 26 additions and 0 deletions
26
.forgejo/workflows/deploy.yaml
Normal file
26
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Deploy Service
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: runner_s4
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Load environment variables
|
||||
run: |
|
||||
echo "${{ secrets.SECRET_ENV_FILE }}" > .env.production
|
||||
set -o allexport
|
||||
source .env.production
|
||||
set +o allexport
|
||||
|
||||
- name: Docker Compose Up
|
||||
run: |
|
||||
docker-compose pull
|
||||
docker-compose up -d --build
|
Loading…
Add table
Reference in a new issue