smoke test after build #7
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 | |
on: [push] | |
env: | |
TAG_GHCR: mrc-ide/wodin | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup env and login to GHCR | |
id: ci-env | |
uses: ./.github/actions/setup-and-login | |
with: | |
ghcr-username: ${{ github.actor }} | |
ghcr-password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push docker | |
uses: docker/build-push-action@v5 | |
with: | |
file: ./docker/Dockerfile | |
push: true | |
tags: | | |
ghcr.io/${{env.TAG_GHCR}}:${{steps.ci-env.outputs.CI_SHA}} | |
ghcr.io/${{env.TAG_GHCR}}:${{steps.ci-env.outputs.CI_BRANCH}} | |
- name: Smoke test | |
run: | | |
./scripts/run-version.sh --app ${{steps.ci-env.outputs.CI_BRANCH}} & | |
curl http://localhost:3000 | grep "Example WODIN configuration" |