Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/build_image_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,24 @@ on:
workflow_dispatch:

jobs:
get-data:
runs-on: ubuntu-latest
outputs:
releaseImg: ${{ steps.get_release_img.outputs.release }}
env:
GH_TOKEN: ${{ github.token }}
steps:
-
id: get_release_img
run:
echo "release=$(gh release view -R ${{ github.repository }} --json tagName -q .tagName)" >> "$GITHUB_OUTPUT"
build-develop:
uses: ./.github/workflows/build_and_publish.yml
needs: get-data
uses: $/.github/workflows/build_and_publish.yml
Comment thread
colisee marked this conversation as resolved.
with:
appGitRefs: develop
appAddSha: true
imgBuild: ${{ vars.VERSION_LB_IMG }}
imgBuild: ${{ needs.get-data.outputs.releaseImg }}
regName: ${{ vars.REGISTRY_URL }}
regLogin: ${{ vars.REGISTRY_LOGIN }}
secrets:
Expand Down
23 changes: 20 additions & 3 deletions .github/workflows/build_image_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,29 @@ on:
workflow_dispatch:

jobs:
get-data:
runs-on: ubuntu-latest
outputs:
releaseImg: ${{ steps.get_release_img.outputs.release }}
releaseApp: ${{ steps.get_release_app.outputs.release }}
env:
GH_TOKEN: ${{ github.token }}
steps:
-
id: get_release_img
run:
echo "release=$(gh release view -R ${{ github.repository }} --json tagName -q .tagName)" >> "$GITHUB_OUTPUT"
-
id: get_release_app
run:
echo "release=$(gh release view -R librebooking/librebooking --json tagName -q .tagName)" >> "$GITHUB_OUTPUT"
build-stable:
uses: ./.github/workflows/build_and_publish.yml
needs: get-data
uses: $/.github/workflows/build_and_publish.yml
with:
appGitRefs: ${{ vars.VERSION_LB_APP }}
appGitRefs: ${{ needs.get-data.outputs.releaseApp }}
appAddSha: false
imgBuild: ${{ vars.VERSION_LB_IMG }}
imgBuild: ${{ needs.get-data.outputs.releaseImg }}
regName: ${{ vars.REGISTRY_URL }}
regLogin: ${{ vars.REGISTRY_LOGIN }}
secrets:
Expand Down
Loading