Load into local docker #49
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: Push KRE Docker Image to ECR | |
on: | |
push: | |
branches: | |
- Build-arm | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
run: | |
name: Run | |
runs-on: ubuntu-latest | |
env: | |
KRE_VERSION: 10.0.0-dev | |
DOCKER_IMAGE_PUBLISHED_TAG: build-arm | |
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 docker-ce docker-ce-cli containerd.io binfmt-support qemu-user-static | |
export DOCKER_BUILDKIT=1 | |
sudo systemctl restart docker | |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
- name: Build | |
run: | | |
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: | |
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:$DOCKER_IMAGE_PUBLISHED_TAG |