Use secrets for ECR registry and repository in workflow

This commit is contained in:
Gregory Campbell
2026-06-19 13:40:55 -04:00
committed by GitHub
parent 3b351f1a2b
commit 49a0f81957
+2 -2
View File
@@ -22,5 +22,5 @@ jobs:
run: cargo test --verbose run: cargo test --verbose
- name: Build and Push Docker Imaage to Amazon ECR - name: Build and Push Docker Imaage to Amazon ECR
run: | run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY_RUST:latest . docker build -t ${{ secrets.ECR_REGISTRY }}/${{ secrets.ECR_REPOSITORY_RUST }}:latest .
docker push $ECR_REGISTRY/$ECR_REPOSITORY_RUST:latest docker push ${{ secrets.ECR_REGISTRY }}/${{ secrets.ECR_REPOSITORY_RUST }}:latest