Skip to content

Commit

Permalink
Authorization before pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
huyennguyen-katalon committed Oct 2, 2024
1 parent d4c4049 commit 36ec97b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/workflow-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
chmod u+x ./build/*.sh
./build/clean.sh $KRE_VERSION
./build/build.sh $KRE_VERSION
- name: Tag Docker image with commit ID
run: |
docker images
docker tag katalon-katalon 002582244933.dkr.ecr.us-east-1.amazonaws.com/katalon-studio:$DOCKER_IMAGE_PUBLISHED_TAG
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand All @@ -43,5 +39,9 @@ jobs:
mask-aws-account-id: "no"
- name: Login to Amazon ECR
uses: aws-actions/amazon-ecr-login@v1
- name: Push Docker image to ECR
run: docker push 002582244933.dkr.ecr.us-east-1.amazonaws.com/katalon-studio:$DOCKER_IMAGE_PUBLISHED_TAG
- name: Tag Docker image with commit ID
run: |
docker images
docker tag katalon-katalon 002582244933.dkr.ecr.us-east-1.amazonaws.com/katalon-studio:$DOCKER_IMAGE_PUBLISHED_TAG
# - name: Push Docker image to ECR
# run: docker push 002582244933.dkr.ecr.us-east-1.amazonaws.com/katalon-studio:$DOCKER_IMAGE_PUBLISHED_TAG
2 changes: 1 addition & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -xe
ksversion=$1

docker buildx create --name mybuilder --driver docker-container --use --bootstrap
docker buildx build --platform linux/amd64,linux/arm64 --load -t katalon-katalon -f src/Dockerfile --build-arg KATALON_STUDIO_VERSION=$ksversion .
docker buildx build --platform linux/amd64,linux/arm64 --push -t katalon-katalon -f src/Dockerfile --build-arg KATALON_STUDIO_VERSION=$ksversion .

0 comments on commit 36ec97b

Please sign in to comment.