https://github.com/balinux/deno-github-action
github action with simple deno app
https://github.com/balinux/deno-github-action
cicd deno github-actions
Last synced: about 2 months ago
JSON representation
github action with simple deno app
- Host: GitHub
- URL: https://github.com/balinux/deno-github-action
- Owner: balinux
- Created: 2020-06-29T05:11:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-29T05:41:41.000Z (almost 6 years ago)
- Last Synced: 2025-01-18T05:42:44.609Z (over 1 year ago)
- Topics: cicd, deno, github-actions
- Language: TypeScript
- Homepage: https://deno-github-action.fly.dev/
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# about
deploy deno to fly.io with github actions
# references
https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
# config
- docker :
``` Dockerfile
FROM hayd/deno:latest
WORKDIR /app
USER deno
ADD . .
RUN deno cache app.ts
CMD ["run", "--allow-net", "app.ts" ]
```
# step
- create repo
- create simple app, example: https://deno.land/#getting-started
- login to fly.io with : ```flyctl auth login```
- create token fly.io with : ```flyctl auth token```
- go to setting on your repository
- create a secret, name: FLY_API_TOKEN, with value fro token step 2
- create Dockerfile add config docker
- run flyctl apps create to create a fly.toml
- create `.github/workflows/main.yml` file with these content:
```
name: Fly Deploy
on: [push]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions@1.1
with:
args: "deploy"
```
- commit and push
- This is where the magic happens - The push will have triggered a deploy and from now on whenever you push a change, the app will automatically be redeployed.