Skip to content

Commit

Permalink
Fix payload
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelirh committed May 1, 2024
1 parent acb2718 commit 01d752b
Showing 1 changed file with 53 additions and 53 deletions.
106 changes: 53 additions & 53 deletions .github/workflows/release-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,61 +97,61 @@ jobs:
# "automatic_mode": "${{ github.event.inputs.automatic_mode }}",
# "prerelease": "${{ github.event.inputs.prerelease }}"
# }

build_and_push_docker_images:
name: Build panther docker images
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
# needs:
# - release_panther_docker
runs-on: ubuntu-22.04
steps:
- name: Trigger repository build workflow
uses: convictional/[email protected]
with:
owner: husarion
repo: panther-docker
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: ros-docker-image.yaml
ref: ${{ env.MAIN_BRANCH }}
wait_interval: 10
client_payload: |
{
"build_type": "stable",
"target_distro": "humble",
"target_release": "${{ github.event.inputs.version }}",
"target_date": "${{ github.event.inputs.date }}"
}
release_panther_rpi_os_image:
name: Release panther-rpi-os-img repository
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
# needs:
# - release_panther_docker
runs-on: ubuntu-22.04
steps:
- name: Trigger repository release workflow
uses: convictional/[email protected]
with:
owner: husarion
repo: panther-rpi-os-img
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: release-repository.yaml
ref: ${{ env.RC_BRANCH_NAME }}
wait_interval: 10
client_payload: |
{
"target_branch": "${{ env.RC_BRANCH_NAME }}",
"version": "${{ github.event.inputs.version }}",
"release_name": "${{ github.event.inputs.release_name }}",
"automatic_mode": "${{ github.event.inputs.automatic_mode }}",
"prerelease": "${{ github.event.inputs.prerelease }}"
}
#
# build_and_push_docker_images:
# name: Build panther docker images
# if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
## needs:
## - release_panther_docker
# runs-on: ubuntu-22.04
# steps:
# - name: Trigger repository build workflow
# uses: convictional/[email protected]
# with:
# owner: husarion
# repo: panther-docker
# github_token: ${{ secrets.GH_PAT }}
# workflow_file_name: ros-docker-image.yaml
# ref: ${{ env.MAIN_BRANCH }}
# wait_interval: 10
# client_payload: |
# {
# "build_type": "stable",
# "target_distro": "humble",
# "target_release": "${{ github.event.inputs.version }}",
# "target_date": "${{ github.event.inputs.date }}"
# }
#
# release_panther_rpi_os_image:
# name: Release panther-rpi-os-img repository
# if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
## needs:
## - release_panther_docker
# runs-on: ubuntu-22.04
# steps:
# - name: Trigger repository release workflow
# uses: convictional/[email protected]
# with:
# owner: husarion
# repo: panther-rpi-os-img
# github_token: ${{ secrets.GH_PAT }}
# workflow_file_name: release-repository.yaml
# ref: ${{ env.RC_BRANCH_NAME }}
# wait_interval: 10
# client_payload: |
# {
# "target_branch": "${{ env.RC_BRANCH_NAME }}",
# "version": "${{ github.event.inputs.version }}",
# "release_name": "${{ github.event.inputs.release_name }}",
# "automatic_mode": "${{ github.event.inputs.automatic_mode }}",
# "prerelease": "${{ github.event.inputs.prerelease }}"
# }
#
build_and_publish_rpi_image:
name: Build panther system image
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
needs:
- release_panther_rpi_os_image
# needs:
# - release_panther_rpi_os_image
runs-on: ubuntu-22.04
steps:
- name: Trigger repository build workflow
Expand All @@ -167,5 +167,5 @@ jobs:
{
"dev_image": "false",
"panther_codebase_version": "${{ github.event.inputs.version }}",
"image_tag": "${{ github.event.inputs.version }}",
"image_tag": "${{ github.event.inputs.version }}"
}

0 comments on commit 01d752b

Please sign in to comment.