Skip to content

Commit

Permalink
Update branch naming in release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelirh committed Jun 5, 2024
1 parent 1f3fb8c commit 163de5b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-candidate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
repository_owner: husarion
repository_name: ${{ matrix.repo }}
new_branch_name: ${{ env.RC_BRANCH_NAME }}
new_branch_ref: ros2
new_branch_ref: ros2-devel
access_token: ${{ secrets.GH_PAT}}

update_tags_in_compose:
Expand All @@ -58,7 +58,7 @@ jobs:
wait_interval: 10
client_payload: |
{
"target_branch": "${{ env.RC_BRANCH_NAME }}",
"source_branch": "${{ env.RC_BRANCH_NAME }}",
"image_tag": "humble-${{ env.RC_BRANCH_NAME }}"
}
Expand Down
31 changes: 26 additions & 5 deletions .github/workflows/release-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,31 @@ 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
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: |
{
"build_type": "development",
"target_distro": "humble"
}
release_panther_docker:
name: Release panther-docker repository
needs:
- release_panther_ros
- rebuild_and_push_docker_images
runs-on: ubuntu-22.04
steps:
- name: Trigger repository release workflow
Expand All @@ -93,16 +114,16 @@ jobs:
wait_interval: 10
client_payload: |
{
"target_branch": "${{ env.RC_BRANCH_NAME }}",
"source_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
tag_docker_images:
name: Tag panther docker images as stable
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
needs:
- release_panther_docker
Expand Down Expand Up @@ -143,7 +164,7 @@ jobs:
wait_interval: 10
client_payload: |
{
"target_branch": "${{ env.RC_BRANCH_NAME }}",
"source_branch": "${{ env.RC_BRANCH_NAME }}",
"version": "${{ github.event.inputs.version }}",
"release_name": "${{ github.event.inputs.release_name }}",
"automatic_mode": "${{ github.event.inputs.automatic_mode }}",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
workflow_dispatch:
inputs:
source_branch:
description: Source branch for the release
description: Source branch for the release.
required: true
target_branch:
description: Target branch for the release
description: Target branch for the release.
required: false
default: ros2
version:
Expand Down

0 comments on commit 163de5b

Please sign in to comment.