forked from viamrobotics/rdk
-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (85 loc) · 2.84 KB
/
releasecandidate.yml
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
name: Build and Publish RC
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
# To test workflow updates you need to work in a branch directly on viamrobotics/rdk
# and tag your working branch instead of @main in any viamrobotics/rdk "uses" below.
# Don't forget to tag back to @main before merge.
jobs:
test:
uses: viamrobotics/rdk/.github/workflows/test.yml@main
secrets:
MONGODB_TEST_OUTPUT_URI: ${{ secrets.MONGODB_TEST_OUTPUT_URI }}
DOCKER_PUBLIC_READONLY_PAT: ${{ secrets.DOCKER_PUBLIC_READONLY_PAT }}
appimage:
needs: test
uses: viamrobotics/rdk/.github/workflows/appimage.yml@main
with:
release_type: 'rc'
secrets:
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
staticbuild:
needs: test
uses: viamrobotics/rdk/.github/workflows/staticbuild.yml@main
with:
release_type: 'rc'
secrets:
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
droid:
needs: test
uses: viamrobotics/rdk/.github/workflows/droid.yml@main
with:
release_type: 'rc'
secrets:
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
slack-workflow-status:
if: ${{ failure() }}
name: Post Workflow Status To Slack
needs:
- test
- appimage
- staticbuild
runs-on: ubuntu-latest
permissions:
actions: 'read'
steps:
- name: Slack Workflow Notification
uses: Gamesight/slack-workflow-status@master
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
slack_webhook_url: ${{secrets.SLACK_WEBHOOK_URL}}
channel: '#team-devops'
name: 'Workflow Status'
extract-rc-version:
runs-on: ubuntu-latest
continue-on-error: true
outputs:
version: ${{ steps.extract-rc-version.outputs.version }}
rc_number: ${{ steps.extract-rc-version.outputs.rc_number }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Extract version and RC number
id: extract-rc-version
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
if [[ $TAG_NAME =~ v([0-9]+\.[0-9]+\.[0-9]+)-rc([0-9]+) ]]; then
VERSION="${BASH_REMATCH[1]}"
RC_NUMBER="${BASH_REMATCH[2]}"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "rc_number=$RC_NUMBER" >> $GITHUB_OUTPUT
else
echo "The tag does not match the expected pattern"
fi
run-sdk-integration-networking-tests:
needs: [staticbuild, appimage, extract-rc-version]
if: ${{ success() }}
uses: viamrobotics/rdk/.github/workflows/trigger-networking-tests.yml@main
with:
version: ${{ needs.extract-rc-version.outputs.version }}
rc_number: ${{ needs.extract-rc-version.outputs.rc_number }}
secrets:
REPO_READ_TOKEN: ${{ secrets.REPO_READ_TOKEN }}