Skip to content

Commit

Permalink
Add option step for create test-image (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Varagon007 authored Sep 29, 2023
1 parent 364f5f0 commit bf5385c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/test_clickhouse_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,30 @@ on:
jobs:
test_integration:
runs-on: ubuntu-latest
env:
CLICKHOUSE_VERSION: ${{ inputs.clickhouse_version }}
NEED_SETUP: true
steps:
- uses: actions/checkout@v3
- name: Check the input tag to ${{ inputs.clickhouse_version }}
continue-on-error: true
run: |
docker manifest inspect chtools/test-clickhouse:${{ inputs.clickhouse_version }}
echo "NEED_SETUP=false" >> $GITHUB_ENV
- name: login to dockerhub
if: env.NEED_SETUP == 'true'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build and push necessary images
if: env.NEED_SETUP == 'true'
uses: docker/bake-action@v3
with:
files: tests/bake.hcl
push: true
- uses: ./.github/actions/setup_dependencies
with:
python-version: "3.11"
- name: run integration tests
run: CLICKHOUSE_VERSION=${{ inputs.clickhouse_version }} make test-integration
run: make test-integration

0 comments on commit bf5385c

Please sign in to comment.