65
65
name : Build, test and deploy container images
66
66
needs : perform_tests
67
67
runs-on : ubuntu-latest
68
+ strategy :
69
+ matrix :
70
+ image-name : ["kas", "kas-isar"]
68
71
steps :
69
72
- name : Check out repo
70
73
uses : actions/checkout@v4
@@ -74,52 +77,29 @@ jobs:
74
77
deploy-user : ${{ secrets.PACKAGE_DEPLOY_USER }}
75
78
deploy-token : ${{ secrets.PACKAGE_DEPLOY_TOKEN }}
76
79
77
- - name : Build kas image
78
- uses : docker/build-push-action@v5
79
- with :
80
- context : /home/runner/kas-clone
81
- build-args : |
82
- SOURCE_DATE_EPOCH=${{ env.SOURCE_DATE_EPOCH }}
83
- DEBIAN_TAG=${{ env.DEBIAN_TAG }}
84
- outputs : type=docker,rewrite-timestamp=true
85
- tags : ghcr.io/siemens/kas/kas:next
86
- - name : Test kas image
87
- run : |
88
- cd image-tests/poky
89
- KAS_IMAGE_VERSION=next ../../kas-container build kas.yml
90
- - name : Complete build and deploy kas image
91
- uses : docker/build-push-action@v5
92
- with :
93
- context : /home/runner/kas-clone
94
- platforms : linux/amd64,linux/arm64
95
- build-args : |
96
- SOURCE_DATE_EPOCH=${{ env.SOURCE_DATE_EPOCH }}
97
- DEBIAN_TAG=${{ env.DEBIAN_TAG }}
98
- outputs : type=registry,rewrite-timestamp=true
99
- tags : ghcr.io/siemens/kas/kas:next
100
-
101
- - name : Build kas-isar image
80
+ - name : Build ${{ matrix.image-name }} image
102
81
uses : docker/build-push-action@v5
103
82
with :
104
83
context : /home/runner/kas-clone
105
- target : kas-isar
84
+ target : ${{ matrix.image-name }}
85
+ platforms : linux/amd64
106
86
build-args : |
107
87
SOURCE_DATE_EPOCH=${{ env.SOURCE_DATE_EPOCH }}
108
88
DEBIAN_TAG=${{ env.DEBIAN_TAG }}
109
89
outputs : type=docker,rewrite-timestamp=true
110
- tags : ghcr.io/siemens/kas/kas-isar :next
111
- - name : Test kas-isar image
90
+ tags : ghcr.io/siemens/kas/${{ matrix.image-name }} :next
91
+ - name : Test ${{ matrix.image-name }} image
112
92
run : |
113
- cd image-tests/isar
93
+ cd image-tests/${{ matrix.image-name }}
114
94
KAS_IMAGE_VERSION=next ../../kas-container build kas.yml
115
- - name : Complete build and deploy kas-isar image
95
+ - name : Complete build and deploy ${{ matrix.image-name }} image
116
96
uses : docker/build-push-action@v5
117
97
with :
118
98
context : /home/runner/kas-clone
119
- target : kas-isar
99
+ target : ${{ matrix.image-name }}
120
100
platforms : linux/amd64,linux/arm64
121
101
build-args : |
122
102
SOURCE_DATE_EPOCH=${{ env.SOURCE_DATE_EPOCH }}
123
103
DEBIAN_TAG=${{ env.DEBIAN_TAG }}
124
104
outputs : type=registry,rewrite-timestamp=true
125
- tags : ghcr.io/siemens/kas/kas-isar :next
105
+ tags : ghcr.io/siemens/kas/${{ matrix.image-name }} :next
0 commit comments