Merge pull request #373 from freezingsaddles/broken-image-fallback #102
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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" |