Skip to content

Commit

Permalink
Update ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensrtw authored Sep 18, 2024
1 parent 5a8f838 commit 5ee0140
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ jobs:
REGISTRY=201959883603.dkr.ecr.us-east-2.amazonaws.com

# Build the Docker image
docker build -f Dockerfile-mvn-no-local -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker build --build-arg CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token \
--domain ${{ secrets.CODEARTIFACT_DOMAIN }} \
--domain-owner $AWS_ACCOUNT_ID \
--region $AWS_REGION \
--query authorizationToken \
--output text) -f Dockerfile-mvn-no-local -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .

# Push the Docker image
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
Expand Down

0 comments on commit 5ee0140

Please sign in to comment.