Skip to content

Commit

Permalink
use scylladb-actions/get-version cli to get scylla version
Browse files Browse the repository at this point in the history
  • Loading branch information
sylwiaszunejko committed Oct 23, 2024
1 parent 8a72b15 commit 69a8ff9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 214 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,21 @@ jobs:
DOCKER_IMAGE_TAG="scylladb/gocql-extended-ci:scylla-bench-${{ github.event.pull_request.head.sha }}" DOCKER_IMAGE_LABELS="com.scylladb.gocql-version=${{ github.event.pull_request.head.sha }}" make build-sct-docker-image
docker push "scylladb/gocql-extended-ci:scylla-bench-${{ github.event.pull_request.head.sha }}"
- name: Install get-version CLI
run: |
git clone https://github.com/scylladb-actions/get-version.git
cd get-version
go mod tidy
go build -o get-version
- name: Get scylla version
id: scylla-version
run: |
cd get-version
if [[ "${{ matrix.scylla-version }}" == "ENTERPRISE-RELEASE" ]]; then
echo "value=$(python3 gocql/ci/version_fetch.py --version-index 1 scylla-enterprise-stable:1 | tr -d '\"')" | tee -a $GITHUB_OUTPUT
echo "value=$(./get-version --source dockerhub-imagetag --repo scylladb/scylla-enterprise -filters "2024.1.LAST" | tr -d '\"')" | tee -a $GITHUB_OUTPUT
elif [[ "${{ matrix.scylla-version }}" == "OSS-RELEASE" ]]; then
echo "value=$(python3 gocql/ci/version_fetch.py --version-index 1 scylla-oss-stable:1 | tr -d '\"')" | tee -a $GITHUB_OUTPUT
echo "value=$(./get-version --source dockerhub-imagetag --repo scylladb/scylla -filters "6.1.LAST" | tr -d '\"')" | tee -a $GITHUB_OUTPUT
elif echo "${{ matrix.scylla-version }}" | grep -P '^[0-9\.]+'; then # If you want to run specific version do just that
echo "value=${{ matrix.scylla-version }}" | tee -a $GITHUB_OUTPUT
else
Expand Down
212 changes: 0 additions & 212 deletions ci/version_fetch.py

This file was deleted.

0 comments on commit 69a8ff9

Please sign in to comment.