-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (37 loc) · 1.02 KB
/
build-web.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 build Thaliak.Web
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/**'
- 'Thaliak.Web/**'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Thaliak.Web/Dockerfile
push: true
tags: ghcr.io/CrystallineTools/thaliak-web:latest
- name: Deploy to production server
uses: appleboy/[email protected]
with:
host: ${{ secrets.REMOTE_HOST }}
port: ${{ secrets.REMOTE_PORT }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.REMOTE_SSH_KEY }}
script: ~/gha-deploy.sh web