From 937311d92e2073c2d44eda25d7e4d9ec7bb172bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Tue, 16 Nov 2021 12:43:15 +0100 Subject: [PATCH] fix: remove github actions for beta environment --- .github/workflows/beta.yml | 83 -------------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 .github/workflows/beta.yml diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml deleted file mode 100644 index 5c87b578f..000000000 --- a/.github/workflows/beta.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Beta - -on: - push: - branches: [ release/* ] - -jobs: - - tsc: - - name: Check types - - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Install dependencies - run: yarn install --pure-lockfile - - - name: Typescript - run: yarn tsc - - deploy: - - runs-on: ubuntu-latest - - needs: tsc - - steps: - - uses: actions/checkout@v2 - - - name: Copy robots.txt - run: cp public/robots.txt.development public/robots.txt - - - name: Publish to Registry - uses: elgohr/Publish-Docker-Github-Action@master - with: - name: standardnotes/web - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - tags: "beta,${{ github.sha }}" - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - - - name: Download task definition - run: | - aws ecs describe-task-definition --task-definition app-beta-prod --query taskDefinition > task-definition.json - - - name: Fill in the new image ID in the Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: task-definition.json - container-name: app-beta-prod - image: "standardnotes/web:${{ github.sha }}" - - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: app-beta-prod - cluster: prod - wait-for-service-stability: true - - notify_slack: - needs: deploy - - runs-on: ubuntu-latest - - steps: - - name: Notify slack - uses: pullreminders/slack-action@master - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - with: - args: '{ \"channel\": \"${{ secrets.SLACK_NOTIFICATION_CHANNEL }}\", \"blocks\": [{\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"Successfully deployed \"}}, {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"Changes: \"}, \"accessory\": {\"type\": \"image\", \"image_url\": \"https://website-dev.standardnotes.com/assets/icon.png\", \"alt_text\": \"Standard Notes\"}}, { \"type\": \"section\", \"fields\": [{\"type\": \"mrkdwn\", \"text\": \"\"}]}]}'