thechangelog / nightly

Changelog Nightly unearths the hottest repos on GitHub before they blow up. Subscribe for free. Keep up.
https://changelog.com/nightly
MIT License
206 stars 19 forks source link

🤖 Daggerize & deploy to Fly.io ✈️ #42

Closed gerhard closed 8 months ago

gerhard commented 8 months ago

TL;DR the app is currently running as https://changelog-nightly-2023-10-10.fly.dev/

This adds everything needed to run this app on Fly.io:

A good command to start with is dagger run go run . build

Use the --debug flag to build a local image. Requires OP_SERVICE_ACCOUNT_TOKEN to be set. FWIW: https://developer.1password.com/docs/service-accounts/get-started

The local image will be exported to tmp/image.tar. Test it locally by running:

docker load -i tmp/image.tar
docker run --rm -p 8081:80 -it <sha256:...>

To see all available options, run: dagger run go run .

This was done part of https://github.com/thechangelog/changelog.com/discussions/480


Follow-ups