Skip to content

Commit 12b23aa

Browse files
committed
Update vars
1 parent 225f4a5 commit 12b23aa

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/build-multi-arch.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Build multi-arch image
33
on:
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
@@ -79,6 +83,10 @@ jobs:
7983
id: tag
8084
uses: cytopia/[email protected]
8185

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
111119
uses: cytopia/[email protected]
112120
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

Comments
 (0)