Skip to content

Update README.md

Update README.md #9

Workflow file for this run

name: Deploy
on:
push:
branches: [ "main" ]
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Removing old deployment
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd ~/prod/2024_BEOTKKOTTHON/Frontend
podman-compose down 2>&1
- name: Getting source and build
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd ~/prod/2024_BEOTKKOTTHON/Frontend
git pull
podman rmi 2024goormthon/frontend 2>&1
podman build -t 2024goormthon/frontend .
- name: Run deployment
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd ~/prod/2024_BEOTKKOTTHON/Frontend
podman-compose up -d