Json references test PR #68
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: Smoke test Docker image | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
smoke-test-container: | |
runs-on: ubuntu-latest | |
env: | |
BUILDKIT_PROGRESS: plain | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Need fetch-depth 0 to fetch tags, see https://github.com/actions/checkout/issues/701 | |
with: | |
fetch-depth: 0 | |
- name: Install requirements | |
run: make install | |
- name: Resolve Karapace version | |
run: | | |
source ./venv/bin/activate | |
KARAPACE_VERSION=$(python -c "from karapace import version; print(version.__version__)") | |
echo KARAPACE_VERSION=$KARAPACE_VERSION >> $GITHUB_ENV | |
- name: Build container | |
run: docker build --build-arg KARAPACE_VERSION=${{ env.KARAPACE_VERSION }} --file=container/Dockerfile . | |
- name: Run container | |
run: docker compose --file=container/compose.yml up --build --wait --detach | |
- name: Smoke test registry | |
run: bin/smoke-test-registry.sh | |
- name: Smoke test REST proxy | |
run: bin/smoke-test-rest.sh |