From fa27c0b200445276d96b537a6d7c3a95d3b04643 Mon Sep 17 00:00:00 2001 From: kierandrewett Date: Sat, 27 Apr 2024 22:14:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Disable=20staging=20deployments?= =?UTF-8?q?=20for=20now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 54 ++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 18bc35a..80978dc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,35 +35,35 @@ jobs: done yarn test - # Staging deployments - deploy-staging: - runs-on: ubuntu-latest - needs: build - if: github.ref == 'refs/heads/staging' - environment: - name: Staging - url: "http://dothq.local" - permissions: - contents: read + # # Staging deployments + # deploy-staging: + # runs-on: ubuntu-latest + # needs: build + # if: github.ref == 'refs/heads/staging' + # environment: + # name: Staging + # url: "http://dothq.local" + # permissions: + # contents: read - steps: - - name: Checkout repository - uses: actions/checkout@v4 + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 - - name: Deploy to staging server - uses: ./.github/actions/run-via-ssh - with: - ts_hostname: ${{ vars.SERVER_HOSTNAME }} - ts_oauth_client_id: ${{ secrets.TS_OAUTH_CLIENT_ID }} - ts_oauth_secret: ${{ secrets.TS_OAUTH_SECRET }} - ts_tags: tag:ci - ssh_username: ci - ssh_private_key: ${{ secrets.SERVER_CI_PRIVATE_KEY }} - run: | - cd /app - git reset --hard - git pull - ./scripts/rebuild_docker.sh + # - name: Deploy to staging server + # uses: ./.github/actions/run-via-ssh + # with: + # ts_hostname: ${{ vars.SERVER_HOSTNAME }} + # ts_oauth_client_id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + # ts_oauth_secret: ${{ secrets.TS_OAUTH_SECRET }} + # ts_tags: tag:ci + # ssh_username: ci + # ssh_private_key: ${{ secrets.SERVER_CI_PRIVATE_KEY }} + # run: | + # cd /app + # git reset --hard + # git pull + # ./scripts/rebuild_docker.sh # Production deployments deploy-production: