From 49a0f81957d7a15ba5a13c7e472fcb0e6e9b6cfa Mon Sep 17 00:00:00 2001 From: Gregory Campbell <15807475+gjcampbell777@users.noreply.github.com> Date: Fri, 19 Jun 2026 13:40:55 -0400 Subject: [PATCH] Use secrets for ECR registry and repository in workflow --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4223b81..2a0e05a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,5 +22,5 @@ jobs: run: cargo test --verbose - name: Build and Push Docker Imaage to Amazon ECR run: | - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY_RUST:latest . - docker push $ECR_REGISTRY/$ECR_REPOSITORY_RUST:latest + docker build -t ${{ secrets.ECR_REGISTRY }}/${{ secrets.ECR_REPOSITORY_RUST }}:latest . + docker push ${{ secrets.ECR_REGISTRY }}/${{ secrets.ECR_REPOSITORY_RUST }}:latest