forked from coredumped7893/excali-front-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 918 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Docker Image and Deployment CI
on:
workflow_dispatch:
inputs:
only_env:
description: "Only update .env"
type: boolean
required: false
default: false
push:
branches:
- main
- develop
jobs:
build-deploy:
runs-on: self-hosted
timeout-minutes: 30
environment:
name: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v4
- name: Copy ENV file
run: echo "${{ vars.APP_ENV_FILE }}" > .env
- name: Copy ENV file
working-directory: ${{ secrets.DESTINATION_PATH }}
run: echo "${{ vars.APP_ENV_FILE }}" > .env
- name: Build Docker image
if: inputs.only_env == false
run: sudo docker build . --tag excali-front-dev:latest -f Dockerfile
- name: Run Docker image
working-directory: ${{ secrets.DESTINATION_PATH }}
run: docker compose up -d web