Skip to content

Merge remote-tracking branch 'origin/master' into flyio #50

Merge remote-tracking branch 'origin/master' into flyio

Merge remote-tracking branch 'origin/master' into flyio #50

Workflow file for this run

---
name: flyio deploy
"on":
workflow_dispatch:
push:
branches:
- flyio
permissions:
contents: read
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
deploy:
name: flyio deploy
runs-on: ubuntu-latest
environment:
name: flyio
url: https://rwalk.fly.dev
steps:
- name: checkout project
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: install cosign
uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382
- name: verify rwalk image
run: |
cosign verify \
--certificate-identity \
'https://github.com/andros21/rwalk/.github/workflows/build.yml@refs/heads/master' \
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
"${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" | jq .
- name: flyio setup
uses: superfly/flyctl-actions/setup-flyctl@master
- name: flyio deploy
run: |
flyctl deploy --image ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}