Skip to content

chore(deps): update module puerkitobio/goquery to v1.9.1 (#6) #30

chore(deps): update module puerkitobio/goquery to v1.9.1 (#6)

chore(deps): update module puerkitobio/goquery to v1.9.1 (#6) #30

Workflow file for this run

on:
push:
branches:
- master
paths:
- ".github/**"
- "backend/**"
pull_request:
branches:
- master
name: Build Tennis Backend
jobs:
build:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: "1.18" # The Go version to download (if necessary) and use.
- name: Build
run: |
cd backend
go version
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o tennis-tournament-finder-backend cmd/main.go
pwd
ls -la
- name: Deploy
uses: appleboy/scp-action@master
if: github.event_name != 'pull_request'
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.PORT }}
source: "backend/tennis-tournament-finder-backend"
target: ${{ secrets.DEPLOYMENT_PATH }}
strip_components: 1
- name: Restart Service
uses: appleboy/ssh-action@master
if: github.event_name != 'pull_request'
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.PORT }}
script: supervisorctl restart tennis-tournament-finder-backend