File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ name: Build test harness image
3
3
on :
4
4
workflow_call :
5
5
inputs :
6
- image-name :
7
- type : string
8
- required : true
9
- description : ' Name for the image to build'
10
6
publish-image :
11
7
type : boolean
12
8
default : false
@@ -46,14 +42,20 @@ jobs:
46
42
- name : Install bowtie
47
43
uses : bowtie-json-schema/bowtie@main
48
44
45
+ - name : Compute implementation name
46
+ id : impl
47
+ env :
48
+ GH_REPOSITORY : ${{ github.repository }}
49
+ run : echo "name=$(echo ${GH_REPOSITORY} | awk -F '/' '{print $2}')" >> $GITHUB_OUTPUT
50
+
49
51
- name : Build
50
52
id : build_image
51
53
uses : redhat-actions/buildah-build@v2
52
54
with :
53
55
context : ' .'
54
56
containerfiles : |
55
57
Dockerfile
56
- image : ${{ inputs.image- name }}
58
+ image : ${{ steps.impl.outputs. name }}
57
59
tags : ${{ github.sha }} ${{ inputs.is-latest && 'latest' || '' }}
58
60
archs : amd64, arm64
59
61
Original file line number Diff line number Diff line change 21
21
runs-on : ubuntu-latest
22
22
outputs :
23
23
latest-version : ${{ steps.version.outputs.value }}
24
- implementation-name : ${{ steps.impl.outputs.name }}
25
24
steps :
26
25
27
26
- name : Install bowtie
55
54
56
55
uses : ./.github/workflows/build-image.yml
57
56
with :
58
- image-name : ${{ needs.meta.outputs.implementation-name }}
59
57
is-latest : ${{ github.ref == 'refs/heads/main' }}
60
58
publish-image : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
61
59
@@ -128,6 +126,5 @@ jobs:
128
126
129
127
uses : ./.github/workflows/build-image.yml
130
128
with :
131
- image-name : ${{ needs.meta.outputs.implementation-name }}
132
129
is-latest : ${{ github.event.pull_request.base.ref == 'main' }}
133
130
publish-image : true
You can’t perform that action at this time.
0 commit comments