Skip to content

Commit

Permalink
Build auto
Browse files Browse the repository at this point in the history
  • Loading branch information
huyennguyen-katalon committed Sep 30, 2024
1 parent a0af8c4 commit d073992
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/workflow-ecr.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
name: Push KRE Docker Image to ECR

on:
workflow_dispatch:
inputs:
KRE_VERSION:
description: 'KRE version (e.g: "10.0.0-dev"). Please reference the Release at https://katalon.atlassian.net/wiki/spaces/KSR/pages/3005284354/Building+and+Delivery+Pipeline'
required: true
DOCKER_IMAGE_PUBLISHED_TAG:
description: 'Docker image tag (e.g: "10.0.0-latest"). Optional, KRE version is the default value.'
required: false
push:
branches:
- Build-arm

permissions:
id-token: write # This is required for requesting the JWT
Expand All @@ -19,8 +13,8 @@ jobs:
name: Run
runs-on: ubuntu-latest
env:
KRE_VERSION: ${{ inputs.KRE_VERSION }}
DOCKER_IMAGE_PUBLISHED_TAG: ${{ inputs.DOCKER_IMAGE_PUBLISHED_TAG || inputs.KRE_VERSION }}
KRE_VERSION: 10.0.0-dev
DOCKER_IMAGE_PUBLISHED_TAG: build-arm
steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -29,8 +23,9 @@ jobs:
chmod u+x ./build/*.sh
./build/clean.sh $KRE_VERSION
./build/build.sh $KRE_VERSION
docker images
- name: Tag Docker image with commit ID
run: docker tag katalon-studio 002582244933.dkr.ecr.us-east-1.amazonaws.com/katalon-studio:$DOCKER_IMAGE_PUBLISHED_TAG
run: 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 Down

0 comments on commit d073992

Please sign in to comment.