-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
712992d
commit 6c3b6e9
Showing
2 changed files
with
21 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,19 +30,18 @@ env: | |
MAIN_BRANCH: ros2 | ||
|
||
jobs: | ||
release_panther_msgs: | ||
name: Release panther_msgs repository | ||
release_project: | ||
name: Release Husarion UGV project | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Trigger repository release workflow | ||
- name: Release panther_msgs repository | ||
uses: convictional/[email protected] | ||
with: | ||
owner: husarion | ||
repo: panther_msgs | ||
github_token: ${{ secrets.GH_PAT }} | ||
workflow_file_name: release-repository.yaml | ||
ref: ${{ env.RC_BRANCH_NAME }} | ||
wait_interval: 10 | ||
client_payload: | | ||
{ | ||
"release_candidate": "${{ env.RC_BRANCH_NAME }}", | ||
|
@@ -52,21 +51,14 @@ 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 | ||
- name: Release panther_ros repository | ||
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: | | ||
{ | ||
"release_candidate": "${{ env.RC_BRANCH_NAME }}", | ||
|
@@ -76,43 +68,29 @@ jobs: | |
"prerelease": "${{ github.event.inputs.prerelease }}" | ||
} | ||
rebuild_and_push_docker_images: | ||
name: Rebuild panther docker images with new version | ||
runs-on: ubuntu-22.04 | ||
needs: | ||
- release_panther_ros | ||
steps: | ||
- name: Trigger repository build workflow | ||
- name: Rebuild panther docker images with new version | ||
uses: convictional/[email protected] | ||
with: | ||
owner: husarion | ||
repo: panther-docker | ||
github_token: ${{ secrets.GH_PAT }} | ||
workflow_file_name: ros-docker-image.yaml | ||
ref: ${{ env.RC_BRANCH_NAME }} | ||
wait_interval: 10 | ||
client_payload: | | ||
{ | ||
"panther_codebase_version": "${{ github.event.inputs.version }}", | ||
"build_type": "development", | ||
"target_distro": "humble" | ||
} | ||
release_panther_docker: | ||
name: Release panther-docker repository | ||
needs: | ||
- rebuild_and_push_docker_images | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Trigger repository release workflow | ||
- name: Release panther-docker repository | ||
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: | | ||
{ | ||
"release_candidate": "${{ env.RC_BRANCH_NAME }}", | ||
|
@@ -122,22 +100,14 @@ jobs: | |
"prerelease": "${{ github.event.inputs.prerelease }}" | ||
} | ||
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 | ||
- name: Release panther-rpi-os-img repository | ||
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: | | ||
{ | ||
"release_candidate": "${{ env.RC_BRANCH_NAME }}", | ||
|
@@ -147,46 +117,41 @@ jobs: | |
"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 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Trigger repository build workflow | ||
- name: Build panther system image | ||
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }} | ||
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 }}" | ||
} | ||
build_and_publish_rpi_flash_os_image: | ||
name: Build panther flash OS image | ||
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }} | ||
needs: | ||
- build_and_publish_rpi_image | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Trigger repository build workflow | ||
- name: Build panther flash OS image | ||
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }} | ||
uses: convictional/[email protected] | ||
with: | ||
owner: husarion | ||
repo: panther-rpi-os-img | ||
github_token: ${{ secrets.GH_PAT }} | ||
workflow_file_name: build_and_deploy_flash_os_image.yaml | ||
ref: ${{ env.MAIN_BRANCH }} | ||
wait_interval: 10 | ||
client_payload: | | ||
{ | ||
"image_tag": "${{ github.event.inputs.version }}" | ||
} | ||
- name: Trigger repository build workflow | ||
uses: convictional/[email protected] | ||
with: | ||
owner: husarion | ||
repo: docs_new | ||
github_token: ${{ secrets.GH_PAT }} | ||
workflow_file_name: build.yml | ||
ref: master |