diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1982eba1be..d7e6280464 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -10,6 +10,8 @@ on: - 'vfrinx-[0-9]+.[0-9]+.[0-9]' # produce release image (6.0.0) - 'vfrinx-[0-9]+.[0-9]+.[0-9]-stable' # produce stable release image (5.1.0) + workflow_dispatch: + env: # TODO: Change variable to your image's name. IMAGE_NAME: frinx/conductor-server @@ -73,15 +75,24 @@ jobs: echo "IMAGE_TAG=$(echo $GITHUB_REF | cut -d / -f 3 | sed -e 's/^vfrinx-//')" >> "$GITHUB_ENV" # Tag and publish docker image - - name: Push stable-release image - run: | - docker tag $IMAGE_NAME:latest $IMAGE_NAME:${IMAGE_TAG} - docker push $IMAGE_NAME:${IMAGE_TAG} + # - name: Push stable-release image + # run: | + # docker tag $IMAGE_NAME:latest $IMAGE_NAME:${IMAGE_TAG} + # # docker push $IMAGE_NAME:${IMAGE_TAG} #### OpenAPI publish #### + - name: Check conductor health + uses: nick-fields/retry@v2 + with: + timeout_seconds: 10 + max_attempts: 10 + retry_on: error + command: | + curl -X 'GET' 'http://localhost:8080/health' -H 'accept: */*' | grep '"healthy":true' + - name: Get conductor openapi spec - run: sleep 10 && curl http://localhost:8080/v3/api-docs -o openapi.json + run: curl http://localhost:8080/v3/api-docs -o openapi.json - name: Check out swagger_docs branch uses: actions/checkout@v4