-
Notifications
You must be signed in to change notification settings - Fork 10
172 lines (168 loc) · 7.35 KB
/
release-project.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
---
name: Release Panther project
on:
workflow_dispatch:
inputs:
version:
description: Release version, must match release candidate version. IMPORTANT - required format `X.X.X`, eg `2.0.1`.
required: true
date:
description: Release date stamp, must match release candidate date. IMPORTANT - required format `YYYYMMDD`, eg `20240430`.
required: true
release_name:
description: Name of the release to be created. Version in the first place is recommended (e.g. `2.0.0-alpha`).
required: true
automatic_mode:
type: boolean
default: false
description: Automatically merge PRs, create releases and build images.
prerelease:
type: boolean
default: false
description: Mark the release as a prerelease.
env:
RC_BRANCH_NAME: ${{ github.event.inputs.version }}-${{ github.event.inputs.date }}
MAIN_BRANCH: ros2
jobs:
release_panther_msgs:
name: Release panther_msgs repository
runs-on: ubuntu-22.04
steps:
- name: Trigger repository release workflow
uses: convictional/[email protected]
with:
owner: husarion
repo: panther_msgs
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: release-repository.yaml
ref: ros2-handle-boolean-args
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_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 }}",
# }
#