diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 408d5a9a..8a5fcd8e 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -52,7 +52,6 @@ jobs: working-directory: ./ui run: npm run prettier - test-build: name: runner / Go package runs-on: ubuntu-latest @@ -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 diff --git a/fly.dev.toml b/fly.dev.toml index 872eeea6..51420d6f 100644 --- a/fly.dev.toml +++ b/fly.dev.toml @@ -5,7 +5,7 @@ app = "songstitch-dev" primary_region = "iad" -swap_size_mb = 512 +swap_size_mb = 1024 [http_service] internal_port = 8080