From 96e7085495a8b75d642fdf952e41abe2798875c8 Mon Sep 17 00:00:00 2001 From: Matthias Pfeil Date: Wed, 31 May 2023 09:29:52 +0200 Subject: [PATCH] =?UTF-8?q?Don=C2=B4t=20use=20fly.io=20anymore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 106 +++++++++++++++++------------------ 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8d2fdf86b..1b5f5bca5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -161,23 +161,23 @@ jobs: restore-keys: | ${{ runner.os }}-buildx- - - name: 🔑 Fly Registry Auth - uses: docker/login-action@v2 - with: - registry: registry.fly.io - username: x - password: ${{ secrets.FLY_API_TOKEN }} - - - name: 🐳 Docker build - uses: docker/build-push-action@v4 - with: - context: . - push: true - tags: registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.ref_name }}-${{ github.sha }} - build-args: | - COMMIT_SHA=${{ github.sha }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new + # - name: 🔑 Fly Registry Auth + # uses: docker/login-action@v2 + # with: + # registry: registry.fly.io + # username: x + # password: ${{ secrets.FLY_API_TOKEN }} + + # - name: 🐳 Docker build + # uses: docker/build-push-action@v4 + # with: + # context: . + # push: true + # tags: registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.ref_name }}-${{ github.sha }} + # build-args: | + # COMMIT_SHA=${{ github.sha }} + # cache-from: type=local,src=/tmp/.buildx-cache + # cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new # This ugly bit is necessary if you don't want your cache to grow forever # till it hits GitHub's limit of 5GB. @@ -189,39 +189,39 @@ jobs: rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - deploy: - name: 🚀 Deploy - runs-on: ubuntu-latest - needs: [lint, typecheck, vitest, cypress, build] - # only build/deploy main branch on pushes - if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }} - - steps: - - name: 🛑 Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - - - name: ⬇️ Checkout repo - uses: actions/checkout@v3 - - - name: 👀 Read app name - uses: SebRollen/toml-action@v1.0.2 - id: app_name - with: - file: "fly.toml" - field: "app" - - - name: 🚀 Deploy Staging - if: ${{ github.ref == 'refs/heads/dev' }} - uses: superfly/flyctl-actions@1.3 - with: - args: "deploy --app ${{ steps.app_name.outputs.value }}-staging --image registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.ref_name }}-${{ github.sha }}" - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} - - - name: 🚀 Deploy Production - if: ${{ github.ref == 'refs/heads/main' }} - uses: superfly/flyctl-actions@1.3 - with: - args: "deploy --image registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.ref_name }}-${{ github.sha }}" - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + # deploy: + # name: 🚀 Deploy + # runs-on: ubuntu-latest + # needs: [lint, typecheck, vitest, cypress, build] + # # only build/deploy main branch on pushes + # if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }} + + # steps: + # - name: 🛑 Cancel Previous Runs + # uses: styfle/cancel-workflow-action@0.11.0 + + # - name: ⬇️ Checkout repo + # uses: actions/checkout@v3 + + # - name: 👀 Read app name + # uses: SebRollen/toml-action@v1.0.2 + # id: app_name + # with: + # file: "fly.toml" + # field: "app" + + # - name: 🚀 Deploy Staging + # if: ${{ github.ref == 'refs/heads/dev' }} + # uses: superfly/flyctl-actions@1.3 + # with: + # args: "deploy --app ${{ steps.app_name.outputs.value }}-staging --image registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.ref_name }}-${{ github.sha }}" + # env: + # FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + + # - name: 🚀 Deploy Production + # if: ${{ github.ref == 'refs/heads/main' }} + # uses: superfly/flyctl-actions@1.3 + # with: + # args: "deploy --image registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.ref_name }}-${{ github.sha }}" + # env: + # FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}