Hello all,
I’m currently reworking a GitHub Action that deploys an app on Fly.io. I’m now looking to push to the Fly Registry instead, then notifying another app that the image was pushed.
I’m unsure whether the superfly/flyctl-actions/setup-flyctl
Action contains the docker
command. If not, I imagine that I’d need to pass the Docker configuration from fly auth
to the next build step.
Is this currently possible?
Here’s where I’m at so far:
name: Push Image
on:
push:
branches:
- master
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
checks:
uses: ./.github/workflows/checks.yml
deploy:
name: Push
needs: checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: export BUILD_NUMBER=$(git rev-list --count HEAD)
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Configure Docker via Fly
run: flyctl auth docker
- name: Push
run: docker push registry.fly.io/<app name>:master-${BUILD_NUMBER}
# Notify other app of new image here