Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deploy to dev on PR #132

Merged
merged 3 commits into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
working-directory: ./ui
run: npm run prettier


test-build:
name: runner / Go package
runs-on: ubuntu-latest
Expand Down Expand Up @@ -120,6 +119,17 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

deploy-dev:
name: runner / Deploy dev
runs-on: ubuntu-latest
needs: build-push-songstitch
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --image ghcr.io/songstitch/song-stitch:sha-${GITHUB_SHA::7} -c fly.dev.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_DEV }}

deploy:
name: runner / Deploy app
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion fly.dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

app = "songstitch-dev"
primary_region = "iad"
swap_size_mb = 512
swap_size_mb = 1024

[http_service]
internal_port = 8080
Expand Down