@@ -3,6 +3,10 @@ name: Build multi-arch image
33on :
44 workflow_call :
55 inputs :
6+ name :
7+ description : ' Name of the service to build (used for job names only).'
8+ required : true
9+ type : string
610 version :
711 description : ' The version build matrix as an escaped JSON string.'
812 required : true
@@ -25,10 +29,10 @@ jobs:
2529 # JOB 1: CONFIGURE
2630 # -----------------------------------------------------------------------------------------------
2731 configure :
28- name : Configure Build
32+ name : Configure
2933 runs-on : ubuntu-latest
3034 outputs :
31- can_login : ${{ steps.checksecret_job .outputs.is_MY_SECRET_set }}
35+ can_login : ${{ steps.check_secrets .outputs.can_login }}
3236 steps :
3337 - name : Eval login and push
3438 id : check_secrets
7983 id : tag
80848185
86+ - name : " [SETUP] Determine Docker login"
87+ run : |
88+ echo ${{ needs.configure.outputs.can_login }}
89+
8290 # ------------------------------------------------------------
8391 # Build
8492 # ------------------------------------------------------------
@@ -105,11 +113,11 @@ jobs:
105113 with :
106114 username : ${{ secrets.dockerhub_username }}
107115 password : ${{ secrets.dockerhub_password }}
108- if : needs.configure.outputs.can_login == '1'
116+ if : needs.configure.outputs.can_login == 1
109117
110118 - name : Docker push architecture image
111119112120 with :
113121 command : |
114122 make push-arch TAG=${{ steps.tag.outputs.docker-tag }} ARCH=${{ matrix.arch }}
115- if : needs.configure.outputs.can_login == '1'
123+ if : ${{ needs.configure.outputs.can_login == '1' }}
0 commit comments