Skip to content

chore: add image pull secrets to server tag job (#147) #368

chore: add image pull secrets to server tag job (#147)

chore: add image pull secrets to server tag job (#147) #368

Workflow file for this run

name: Continuous Build Docker
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
pull_request_target:
branches:
- main
# workflow_dispatch will let us manually trigger the workflow from GitHub actions dashboard.
# See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
workflow_dispatch:
jobs:
build-on-linux:
# Ubuntu-20.04 runner comes with docker 19.03 and OpenJDK 11 and we are using that here.
runs-on: ubuntu-22.04
name: Build and run Docker images
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0
- name: Build with Gradle
uses: hypertrace/github-actions/gradle@main
with:
args: dockerBuildImages
- name: Verify pinot-servicemanager image
working-directory: ./.github/workflows/servicemanager
# Below tests a docker-compose.yml service named 'sut' with a valid HEALTHCHECK instruction:
run: |
docker-compose up -d
while status="$(docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" "$(docker-compose ps -q sut)")"; do
case $status in
starting) sleep 1;;
healthy) exit 0;;
unhealthy) exit 1;;
esac
done
exit 1
- name: Time pinot-servicemanager bootstrap
working-directory: ./.github/workflows/servicemanager
run: docker-compose logs sut | grep since