Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding katalon tool support for cloud builder #664

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions katalon/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM katalonstudio/katalon:9.6.0

RUN apt-get -y update && \
apt-get -y install ca-certificates

ENTRYPOINT ["sh"]
23 changes: 23 additions & 0 deletions katalon/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Katalon in Google Cloud Build

This demonstrates using the
[`Katalon`](https://github.com/katalon-studio/docker-images) tool in Google Cloud
Build to produce Docker images in a registry, instead of using `docker build`
and `docker push`.

## Steps:

1. Modify the `cloudbuild.yaml` to define the steps to build your Docker image using Katalon.
2. Define the custom `Dockerfile` for Katalon, which installs necessary packages and defines an entry point.
3. Use the Cloud Build trigger to automate the process of building and pushing the Katalon image to your Container Registry, tagged with both `latest` and `9.6.0`.

## Trigger the build locally

To trigger the build locally using `gcloud`, navigate to your project root directory and run the following command:

```bash
gcloud builds submit --config=cloudbuild.yaml .
```

This command will submit your build to Cloud Build using the cloudbuild.yaml configuration file, which includes the steps for tagging the image with both latest and 9.6.0.

6 changes: 6 additions & 0 deletions katalon/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- name: gcr.io/katalon-project/executor:latest
args: ['--destination=gcr.io/$PROJECT_ID/built-with-katalon:latest',
'--destination=gcr.io/$PROJECT_ID/built-with-katalon:9.6.0',
'--cache=true']
tags: ['cloud-builders-community']