Skip to content

Commit

Permalink
just for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Volak committed Feb 7, 2024
1 parent b9aaa76 commit 5db97dd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker
on:
push:
branches:
- 'master' # produce latest image
- 'swagger_publish' # produce latest image
- '[0-9]+.[0-9]+-stable' # produce stable-latest image

tags:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
#### Set tags based on source type ####

- name: Set tag for latest image
if: github.ref_type == 'branch' && startsWith(github.ref, 'refs/heads/master')
if: github.ref_type == 'branch' && startsWith(github.ref, 'refs/heads/swagger_publish')
run: |
echo "IMAGE_TAG=$(echo 'latest')" >> "$GITHUB_ENV"
Expand All @@ -76,13 +76,14 @@ jobs:
# 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}
# docker push $IMAGE_NAME:${IMAGE_TAG}
#### OpenAPI publish ####

- name: Get conductor openapi spec
run: curl http://localhost:8080/v3/api-docs -o openapi.json
run: sleep 10 && 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 5db97dd

Please sign in to comment.