-
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (20 loc) · 669 Bytes
/
workflow.yml
File metadata and controls
26 lines (20 loc) · 669 Bytes
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
name: Build and Deploy
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t qcext-server .
- name: Save Docker image
run: docker save -o qcext-server.tar qcext-server
- name: Compress Docker image
run: bzip2 -z qcext-server.tar
- name: Deploy
run: docker-compose run deploy
env:
DEPLOY_KEY: ${{ secrets.deploy_key }}
DEPLOY_TARGET: ${{ secrets.deploy_target }}