<wip> Push scylla-bench docker image using gocql version from the PR #11
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: Build scylla-bench docke rimage with gocql PR | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build-scylla-bench: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the scylla-bench repository | |
uses: actions/checkout@v2 | |
with: | |
repository: scylladb/scylla-bench | |
path: scylla-bench | |
- name: Checkout GoCQL PR Repository | |
uses: actions/checkout@v2 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
path: gocql | |
- name: Replace gocql with the PR version | |
run: | | |
cd scylla-bench | |
go mod edit -replace github.com/gocql/gocql=../gocql | |
go mod tidy | |
- name: Build and push Scylla-bench Docker Image | |
run: | | |
cd scylla-bench | |
export SCYLLA_BENCH_VERSION=tags/v0.1.9 | |
export NAME="${{ github.event.pull_request.head.ref }}" | |
export SCYLLA_BENCH_DOCKER_IMAGE=scylladb/gocql-extended-ci:scylla-bench-${NAME} | |
docker build -f ../gocql/.github/workflows/Dockerfile . -t ${SCYLLA_BENCH_DOCKER_IMAGE} --build-arg version=$SCYLLA_BENCH_VERSION | |
docker push ${SCYLLA_BENCH_DOCKER_IMAGE} |