From e668099e0e8bbcdf75bbc02d05023d3bfe9687c8 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sun, 27 Aug 2023 09:35:55 -0400 Subject: [PATCH 1/3] feat: deploy to dev on PR --- .github/workflows/ci-cd.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 408d5a9a..add8fb7d 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 }} + deploy: name: runner / Deploy app runs-on: ubuntu-latest From eb579949e88446cf730eb87bd3006d486d3d6b07 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sun, 27 Aug 2023 10:03:44 -0400 Subject: [PATCH 2/3] try new token --- .github/workflows/ci-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index add8fb7d..8a5fcd8e 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -128,7 +128,7 @@ jobs: - 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 }} + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_DEV }} deploy: name: runner / Deploy app From 368772cbee8bfc8c2841328ff935d8da4caa4e43 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sun, 27 Aug 2023 10:15:25 -0400 Subject: [PATCH 3/3] up swap to 1GB in dev --- fly.dev.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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