Skip to content

Commit 2d85e53

Browse files
authored
Merge pull request #2049 from rust-lang/manual-deploy
Add manual deploy workflow
2 parents b0a7633 + 731558e commit 2d85e53

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/manual-deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Manual deploy
2+
on:
3+
workflow_dispatch:
4+
5+
env:
6+
AWS_ACCESS_KEY_ID: AKIA46X5W6CZBLO3VBND
7+
8+
jobs:
9+
deploy:
10+
name: Deploy
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: Checkout the source code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 1
17+
18+
- uses: docker/setup-buildx-action@v2
19+
- name: Build Docker image
20+
uses: docker/build-push-action@v4
21+
with:
22+
context: .
23+
# Export the image to Docker to make it available in the next step
24+
load: true
25+
tags: rustc-perf
26+
cache-from: type=gha
27+
cache-to: type=gha,mode=max
28+
29+
- name: Deploy to production
30+
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master
31+
with:
32+
image: rustc-perf
33+
repository: rust-rustc-perf
34+
region: us-west-1
35+
redeploy_ecs_cluster: rust-ecs-prod
36+
redeploy_ecs_service: rustc-perf
37+
aws_access_key_id: "${{ env.AWS_ACCESS_KEY_ID }}"
38+
aws_secret_access_key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"

0 commit comments

Comments
 (0)