forked from opensearch-project/opensearch-migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request opensearch-project#1195 from AndreKurait/EnableMul…
…tiTypeGHA Enable MultiTypeMappingTransformationTest
- Loading branch information
Showing
4 changed files
with
52 additions
and
78 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,44 +111,6 @@ jobs: | |
with: | ||
gradle-version: ${{ env.gradle-version }} | ||
gradle-home-cache-cleanup: true | ||
- name: Generate Cache Key from Dockerfiles | ||
id: generate_cache_key | ||
run: | | ||
files=$(find . -type f \( -name 'docker-compose.yml' -o -name 'Dockerfile' \)) | ||
file_contents=$(cat $files) | ||
key=$(echo "${file_contents}" | sha1sum | awk '{print $1}') | ||
echo "key=${key}" >> "$GITHUB_OUTPUT" | ||
- name: Cache Docker Images | ||
uses: ScribeMD/[email protected] | ||
with: | ||
key: docker-${{ runner.os }}-${{ steps.generate_cache_key.outputs.key }} | ||
- name: Pre pull images | ||
run: | | ||
pull_if_not_present() { | ||
local image="$1" | ||
if docker image inspect "$image" > /dev/null 2>&1; then | ||
echo "Image '$image' already exists locally." | ||
else | ||
echo "Pulling image '$image'..." | ||
docker pull "$image" | ||
fi | ||
} | ||
images=( | ||
"opensearchproject/opensearch:1.3.16" | ||
"opensearchproject/opensearch:2.14.0" | ||
"docker.elastic.co/elasticsearch/elasticsearch:7.17.22" | ||
"docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2" | ||
"docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.23" | ||
"docker.elastic.co/elasticsearch/elasticsearch:5.6.16" | ||
"httpd:alpine" | ||
"confluentinc/cp-kafka:7.5.0" | ||
"ghcr.io/shopify/toxiproxy:latest" | ||
"amazonlinux:2023" | ||
"alpine:3.16" | ||
) | ||
for image in "${images[@]}"; do | ||
pull_if_not_present "$image" | ||
done | ||
- name: Run Gradle Build | ||
run: ./gradlew build -x test -x TrafficCapture:dockerSolution:build -x spotlessCheck --stacktrace | ||
env: | ||
|
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
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
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