Skip to content

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

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

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

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@b4ffde65f46336ab88eb53be808477a3936bae11
- name: install cosign
uses: sigstore/cosign-installer@1fc5bd396d372bee37d608f955b336615edf79c8
- 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 }}