Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Volak committed Feb 7, 2024
1 parent 338bd74 commit 8b4d9d1
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8b4d9d1

Please sign in to comment.