-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (47 loc) · 1.25 KB
/
build-latest.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
name: Build Deploy and Test Latest
on:
push:
branches:
- 'master'
jobs:
build:
uses: freezingsaddles/freezing-web/.github/workflows/[email protected]
concurrency: build-deploy-and-teset
with:
tag: latest
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-web
docker compose up -d freezing-web
- name: wait
uses: iFaxity/[email protected]
with:
resource: https-get://freezingsaddles.org
timeout: 5000
test:
concurrency: build-deploy-and-test
needs: [build, deploy]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout
uses: actions/checkout@v4
- name: test-wget-spider
run: "URL=https://freezingsaddles.org test/wget-spider.sh"