Skip to content

Merge pull request #28 from freezingsaddles/fix-default-branch-to-main #10

Merge pull request #28 from freezingsaddles/fix-default-branch-to-main

Merge pull request #28 from freezingsaddles/fix-default-branch-to-main #10

Workflow file for this run

---
name: Build and Deploy Latest
on:
push:
branches:
- 'main'
jobs:
build:
uses: freezingsaddles/freezing-web/.github/workflows/[email protected]
concurrency: build-deploy-and-test
with:
tag: latest
repo: freezing-nq
secrets: inherit
deploy:
concurrency: build-deploy-and-test
needs: build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: install
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
passphrase: ${{ secrets.PASSPHRASE }}
script: |
set -euo pipefail
cd /opt/compose
docker compose pull freezing-nq
docker compose up -d freezing-nq