Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelirh committed May 1, 2024
1 parent 4f8c03f commit 186d8ef
Showing 1 changed file with 122 additions and 121 deletions.
243 changes: 122 additions & 121 deletions .github/workflows/release-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
repo: panther_msgs
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: release-repository.yaml
ref: ${{ env.RC_BRANCH_NAME }}
ref: ros2-handle-boolean-args
wait_interval: 10
client_payload: |
{
Expand All @@ -49,123 +49,124 @@ jobs:
"prerelease": "${{ github.event.inputs.prerelease }}"
}
release_panther_ros:
name: Release panther_ros repository
needs:
- release_panther_msgs
runs-on: ubuntu-22.04
steps:
- name: Trigger panther_ros release workflow
uses: convictional/[email protected]
with:
owner: husarion
repo: panther_ros
github_token: ${{ secrets.GITHUB_TOKEN }} # Use the default GITHUB_TOKEN for local repository
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 }}"
}
release_panther_docker:
name: Release panther-docker repository
needs:
- release_panther_ros
runs-on: ubuntu-22.04
steps:
- name: Trigger repository release workflow
uses: convictional/[email protected]
with:
owner: husarion
repo: panther-docker
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 }}",
"date": "${{ github.event.inputs.date }}",
"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: ${{ 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: ${{ 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: ${{ github.event.inputs.automatic_mode == true }}
needs:
- release_panther_rpi_os_image
runs-on: ubuntu-22.04
steps:
- name: Trigger repository build workflow
uses: convictional/[email protected]
with:
owner: husarion
repo: panther-rpi-os-img
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: build_and_deploy_image.yaml
ref: ${{ env.MAIN_BRANCH }}
wait_interval: 10
client_payload: |
{
"dev_image": "false",
"panther_codebase_version": "${{ github.event.inputs.version }}",
"image_tag": "${{ github.event.inputs.version }}",
}
# release_panther_ros:
# name: Release panther_ros repository
# needs:
# - release_panther_msgs
# runs-on: ubuntu-22.04
# steps:
# - name: Trigger panther_ros release workflow
# uses: convictional/[email protected]
# with:
# owner: husarion
# repo: panther_ros
# github_token: ${{ secrets.GITHUB_TOKEN }} # Use the default GITHUB_TOKEN for local repository
# 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 }}"
# }
#
# release_panther_docker:
# name: Release panther-docker repository
# needs:
# - release_panther_ros
# runs-on: ubuntu-22.04
# steps:
# - name: Trigger repository release workflow
# uses: convictional/[email protected]
# with:
# owner: husarion
# repo: panther-docker
# 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 }}",
# "date": "${{ github.event.inputs.date }}",
# "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: ${{ 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: ${{ 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: ${{ github.event.inputs.automatic_mode == true }}
# needs:
# - release_panther_rpi_os_image
# runs-on: ubuntu-22.04
# steps:
# - name: Trigger repository build workflow
# uses: convictional/[email protected]
# with:
# owner: husarion
# repo: panther-rpi-os-img
# github_token: ${{ secrets.GH_PAT }}
# workflow_file_name: build_and_deploy_image.yaml
# ref: ${{ env.MAIN_BRANCH }}
# wait_interval: 10
# client_payload: |
# {
# "dev_image": "false",
# "panther_codebase_version": "${{ github.event.inputs.version }}",
# "image_tag": "${{ github.event.inputs.version }}",
# }
#

0 comments on commit 186d8ef

Please sign in to comment.