Skip to content

Commit

Permalink
yaml files updated for git workflows. (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
Techpurshottam authored Jun 24, 2024
2 parents 3767231 + 9f4819d commit 195d2e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ jobs:
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG"
- name: Set build status
id: set_build_status
if: success()
id: set_output
run: echo "::set-output name=build_status::success"
5 changes: 3 additions & 2 deletions .github/workflows/build-embed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ jobs:
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG"
- name: Set build status
id: set_build_status
run: echo "::set-output name=build_status::success"
if: success()
id: set_output
run: echo "::set-output name=build_status::success"
8 changes: 2 additions & 6 deletions .github/workflows/deploy-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@ jobs:
# if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/api/') }}
uses: ./.github/workflows/build-api.yml
secrets: inherit
outputs:
build_status: ${{ steps.build_status.outcome == 'success' }}

build_embed:
permissions:
contents: read
packages: write
deployments: write
if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/demo/') }}
# if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/demo/') }}
uses: ./.github/workflows/build-embed.yml
secrets: inherit
outputs:
build_status: ${{ steps.build_status.outcome == 'success' }}

# build_queuemanager:
# permissions:
Expand Down Expand Up @@ -60,7 +56,7 @@ jobs:
# - build_queuemanager
# - build_web
# - build_widget
if: needs.build_api.outputs.build_status == 'true' || needs.build_embed.outputs.build_status == 'true'
if: needs.build_api.outputs.build_status == 'success' || needs.build_embed.outputs.build_status == 'success'
steps:
- name: Set up SSH and Run Docker Compose Up
uses: webfactory/ssh-agent@v0.5.3
Expand Down

0 comments on commit 195d2e8

Please sign in to comment.