From 731558e88cf214c6f41c1921cbc4b8aa8edf7f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Mon, 3 Mar 2025 18:37:21 +0100 Subject: [PATCH] Add manual deploy workflow --- .github/workflows/manual-deploy.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/manual-deploy.yml diff --git a/.github/workflows/manual-deploy.yml b/.github/workflows/manual-deploy.yml new file mode 100644 index 000000000..c231171e0 --- /dev/null +++ b/.github/workflows/manual-deploy.yml @@ -0,0 +1,38 @@ +name: Manual deploy +on: + workflow_dispatch: + +env: + AWS_ACCESS_KEY_ID: AKIA46X5W6CZBLO3VBND + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-22.04 + steps: + - name: Checkout the source code + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - uses: docker/setup-buildx-action@v2 + - name: Build Docker image + uses: docker/build-push-action@v4 + with: + context: . + # Export the image to Docker to make it available in the next step + load: true + tags: rustc-perf + cache-from: type=gha + cache-to: type=gha,mode=max + + - name: Deploy to production + uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master + with: + image: rustc-perf + repository: rust-rustc-perf + region: us-west-1 + redeploy_ecs_cluster: rust-ecs-prod + redeploy_ecs_service: rustc-perf + aws_access_key_id: "${{ env.AWS_ACCESS_KEY_ID }}" + aws_secret_access_key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"