File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -28,22 +28,27 @@ jobs:
28
28
host : [desktop, tegra]
29
29
include :
30
30
# configuration for desktop base image
31
- - image_tag : ${{ env.DESKTOP_IMAGE_TAG }}
32
- base_image : ros:noetic-ros-base
31
+ - base_image : ros:noetic-ros-base
33
32
platform : linux/amd64
34
33
architecture : amd64
35
34
host : desktop
36
35
# configuration for tegra base image
37
- - image_tag : ${{ env.TEGRA_IMAGE_TAG }}
38
- base_image : dustynv/ros:noetic-ros-base-l4t-r35.2.1
36
+ - base_image : dustynv/ros:noetic-ros-base-l4t-r35.2.1
39
37
platform : linux/arm64
40
38
architecture : arm64
41
39
host : tegra
42
40
43
41
steps :
44
42
- name : Get datetime for logging
45
- id : datetime
46
- run : echo "datetime=$(date +'%Y_%m_%d_%H_%M_%S')" >> $GITHUB_OUTPUT
43
+ id : matrix_info
44
+ run : |
45
+ if [ "${{ matrix.host }}" == "desktop" ]; then
46
+ echo "image_tag=${{ env.DESKTOP_IMAGE_TAG }}" >> $GITHUB_OUTPUT
47
+ elif [ "${{ matrix.host }}" == "tegra" ]; then
48
+ echo "image_tag=${{ env.TEGRA_IMAGE_TAG }}" >> $GITHUB_OUTPUT
49
+ else
50
+ exit 1
51
+ fi
47
52
48
53
- name : Checkout
49
54
uses : actions/checkout@v4
75
80
cache-from : type=gha
76
81
cache-to : type=gha,mode=max
77
82
tags : |
78
- ${{ matrix.image_tag }}:latest
79
- ${{ matrix.image_tag }}:${{ github.sha }}
83
+ ${{ steps.matrix_info.outputs.datetime }}:latest
84
+ ${{ steps.matrix_info.outputs.datetime }}:${{ github.sha }}
80
85
81
86
create-manifests :
82
87
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments