From 23922e887df3e74e005e7404f76d57d550e43568 Mon Sep 17 00:00:00 2001 From: jay-dhanwant Date: Thu, 7 Nov 2024 11:26:48 +0530 Subject: [PATCH] adding Image APIs and deploying moving to prod fly account --- .github/workflows/deploy-on-merge-to-main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-on-merge-to-main.yml b/.github/workflows/deploy-on-merge-to-main.yml index 9c56e10..89d4336 100644 --- a/.github/workflows/deploy-on-merge-to-main.yml +++ b/.github/workflows/deploy-on-merge-to-main.yml @@ -17,16 +17,17 @@ jobs: with: submodules: recursive - uses: superfly/flyctl-actions/setup-flyctl@master + - name: Create Fly app + run: fly apps create prod-yral-nsfw-classification + env: + FLY_API_TOKEN: ${{ secrets.FLY_IO_DEPLOY_TOKEN }} - name: Set Fly secrets run: | flyctl secrets set --stage --app "prod-yral-nsfw-classification" "SERVICE_CRED=$GOOGLE_CLOUD_EVENTS_BQ_SERVICE_ACCOUNT_KEY_JSON" env: FLY_API_TOKEN: ${{ secrets.FLY_IO_DEPLOY_TOKEN }} SERVICE_CRED: ${{ secrets.GOOGLE_CLOUD_EVENTS_BQ_SERVICE_ACCOUNT_KEY_JSON }} - - name: Create Fly app - run: flyctl apps create prod-yral-nsfw-classification - env: - FLY_API_TOKEN: ${{ secrets.FLY_IO_DEPLOY_TOKEN }} + - name: Deploy a docker container to fly.io run: flyctl deploy --remote-only --config fly.toml env: