build immediately #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Default Docker Image | |
on: | |
push: | |
branches: | |
- STUIDO-6141 | |
jobs: | |
run: | |
name: Run | |
runs-on: ubuntu-latest | |
env: | |
KS_VERSION: '9.7.0-rc1' | |
KS_COMMIT_ID: 'b8771d5fae3f5f3c905fbcd22b4aab4d9161232d' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name : Prepare docker install | |
run: | | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
sudo apt -y install jq | |
- name: Build | |
run: | | |
chmod u+x ./build/*.sh | |
./build/clean.sh $KS_VERSION | |
./build/build.sh $KS_VERSION | |
- name: Tag Docker image with commit ID | |
run: docker tag katalon-katalon 002582244933.dkr.ecr.us-east-1.amazonaws.com/katalon-studio:$KS_COMMIT_ID | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: arn:aws:iam::002582244933:role/katalon-github-oidc-federation | |
role-session-name: github-actions | |
aws-region: us-east-1 | |
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:$KS_COMMIT_ID |