Skip to content

Commit e7fcc3d

Browse files
committed
get repo name from secret
Signed-off-by: Anjul Sahu <anjuls@users.noreply.github.com>
1 parent 00cd323 commit e7fcc3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-and-push.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ jobs:
7575
IMAGE_TAG_BRANCH_ORIG: ${{ needs.setup.outputs.CLEAN_BRANCH_NAME }}
7676
IMAGE_TAG_EPOCH_TIMESTAMP: ${{ needs.setup.outputs.EPOCH_TIMESTAMP }}
7777
run: |
78-
echo "Building for repository: public.ecr.aws/y9s1f3r5/drdroid/drd-vpc-agent"
78+
echo "Building for repository"
7979
80-
REPO_NAME="public.ecr.aws/y9s1f3r5/drdroid/drd-vpc-agent"
80+
REPO_NAME=${{ secrets.REPO_NAME }}
8181
DOCKER_BUILDKIT=1 docker build -f Dockerfile \
8282
--build-arg BUILDKIT_INLINE_CACHE=1 \
8383
--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8 \
@@ -90,6 +90,6 @@ jobs:
9090
- name: Push to ECR
9191
if: github.event_name == 'push'
9292
run: |
93-
echo "Pushing to repository: public.ecr.aws/y9s1f3r5/drdroid/drd-vpc-agent"
94-
REPO_NAME="public.ecr.aws/y9s1f3r5/drdroid/drd-vpc-agent"
93+
echo "Pushing to repository"
94+
REPO_NAME=${{ secrets.REPO_NAME }}
9595
docker push ${REPO_NAME} --all-tags

0 commit comments

Comments
 (0)