From 186d8ef01349c8097553778ba8db5c4a99fd2eac Mon Sep 17 00:00:00 2001 From: pawelirh Date: Wed, 1 May 2024 13:02:41 +0000 Subject: [PATCH] Add test --- .github/workflows/release-project.yaml | 243 +++++++++++++------------ 1 file changed, 122 insertions(+), 121 deletions(-) diff --git a/.github/workflows/release-project.yaml b/.github/workflows/release-project.yaml index 60f4f449c..b31a1990d 100644 --- a/.github/workflows/release-project.yaml +++ b/.github/workflows/release-project.yaml @@ -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: | { @@ -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/trigger-workflow-and-wait@v1.6.1 - 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/trigger-workflow-and-wait@v1.6.1 - 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/trigger-workflow-and-wait@v1.6.1 - 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/trigger-workflow-and-wait@v1.6.1 - 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/trigger-workflow-and-wait@v1.6.1 - 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/trigger-workflow-and-wait@v1.6.1 +# 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/trigger-workflow-and-wait@v1.6.1 +# 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/trigger-workflow-and-wait@v1.6.1 +# 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/trigger-workflow-and-wait@v1.6.1 +# 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/trigger-workflow-and-wait@v1.6.1 +# 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 }}", +# } +#