Skip to content

chore: update ci workflows for new server #33

chore: update ci workflows for new server

chore: update ci workflows for new server #33

Workflow file for this run

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