Skip to content

Commit 35b64cb

Browse files
committed
add workflow to deploy changes
1 parent 56229fa commit 35b64cb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
3+
name: Deploy
4+
on:
5+
workflow_dispatch: {}
6+
7+
jobs:
8+
prod:
9+
name: Production
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Build the Docker image
15+
run: docker build -t docs-rs-web -f dockerfiles/Dockerfile --target web-server .
16+
17+
- name: Upload the Docker image to ECR
18+
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master
19+
with:
20+
image: docs-rs-web
21+
repository: docs-rs-web
22+
region: us-west-1
23+
aws_access_key_id: "${{ secrets.aws_access_key_id }}"
24+
aws_secret_access_key: "${{ secrets.aws_secret_access_key }}"

0 commit comments

Comments
 (0)