Skip to content

Deploy stork needs overwrite now otherwise it hangs #340

Deploy stork needs overwrite now otherwise it hangs

Deploy stork needs overwrite now otherwise it hangs #340

Workflow file for this run

name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
bundler-cache: true
# FIXME: Do a curl otherwise the tests fail when trying to download files O.o
- run: curl -I https://download.binaergewitter.de/2022-10-28.Binaergewitter.Talk.304.mp3
- run: bundle install
- run: bundle exec rake TESTOPTS=-v
build-search:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: python gen-stork.py > stork.toml
- run: wget https://files.stork-search.net/releases/latest/stork-ubuntu-20-04
- run: chmod +x stork-ubuntu-20-04
- run: ./stork-ubuntu-20-04 build --input stork.toml --output bgt.st
- name: Deploy to bgt server
if: github.ref == 'refs/heads/main'
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
overwrite: true
key: ${{ secrets.DEPLOY_KEY }}
source: "bgt.st"
target: "/var/www/html/"
deploy-fly:
runs-on: ubuntu-latest
name: Deploy app to fly
if: github.ref == 'refs/heads/main'
needs: [test, build-search]
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}