Skip to content

Commit 624bde6

Browse files
committed
Build and upload the registry watcher image to production
1 parent c8f8d43 commit 624bde6

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/deploy.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Build the Docker image
14+
- name: Build the web Docker image
1515
run: docker build -t docs-rs-web -f dockerfiles/Dockerfile --target web-server .
1616

17-
- name: Upload the Docker image to ECR (production)
17+
- name: Build the registry watcher Docker image
18+
run: docker build -t docs-rs-registry-watcher -f dockerfiles/Dockerfile --target registry-watcher .
19+
20+
- name: Upload the web Docker image to ECR (production)
1821
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master
1922
with:
2023
image: docs-rs-web
@@ -24,3 +27,14 @@ jobs:
2427
aws_secret_access_key: "${{ secrets.aws_secret_access_key }}"
2528
redeploy_ecs_cluster: rust-ecs-prod
2629
redeploy_ecs_service: docs-rs-web
30+
31+
- name: Upload the registry watcher Docker image to ECR (production)
32+
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master
33+
with:
34+
image: docs-rs-registry-watcher
35+
repository: docs-rs-registry-watcher
36+
region: us-west-1
37+
aws_access_key_id: "${{ secrets.aws_access_key_id }}"
38+
aws_secret_access_key: "${{ secrets.aws_secret_access_key }}"
39+
redeploy_ecs_cluster: rust-ecs-prod
40+
redeploy_ecs_service: docs-rs-registry-watcher

0 commit comments

Comments
 (0)