-
Notifications
You must be signed in to change notification settings - Fork 24
50 lines (44 loc) · 1.42 KB
/
release-build-upload.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
name: Tagged build and upload
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
docker-build-push:
if: github.repository_owner == 'autowarefoundation'
uses: ./.github/workflows/reusable-build-upload-docker.yaml
with:
tag_name: ${{ github.ref_name }}
secrets: inherit
docker-arch-bundle:
if: github.repository_owner == 'autowarefoundation'
needs: docker-build-push
uses: ./.github/workflows/reusable-bundle-docker.yaml
with:
tag_name: ${{ github.ref_name }}
secrets: inherit
get-vars:
if: github.repository_owner == 'autowarefoundation'
runs-on: ubuntu-latest
outputs:
date: ${{ steps.get_date.outputs.date }}
tag_lower: ${{ steps.get_tag.outputs.tag_lower }}
steps:
- name: Get date
id: get_date
run: |
DATE=`date +%Y%m%d`
echo ::set-output name=date::$DATE
- name: Get tag
id: get_tag
run: |
TAG_LOWER=`echo ${{ github.ref_name }} | cut -d . -f 3`
echo ::set-output name=tag_lower::$TAG_LOWER
compile-push-models:
if: github.repository_owner == 'autowarefoundation' && needs.get-vars.outputs.tag_lower == '0'
needs: [get-vars, docker-arch-bundle]
uses: ./.github/workflows/reusable-compile-upload-models.yaml
with:
tag_name: ${{ github.ref_name }}
version_name: ${{ github.ref_name }}-${{ needs.get-vars.outputs.date }}
secrets: inherit