Skip to content

Commit 6975c6c

Browse files
authored
Merge pull request #49 from infosiftr/buildx-setup
Always setup buildkit
2 parents 0ead42d + dde88eb commit 6975c6c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,12 @@ jobs:
140140
141141
- name: Build
142142
run: |
143+
bk="$(.doi/.bin/bashbrew-buildkit-env-setup.sh)"
144+
bk="$(jq <<<"$bk" -r 'to_entries | map(.key + "=" + .value | @sh) | "export " + join(" ")')"
145+
eval "$bk"
146+
143147
cd build
144148
shell="$(jq <<<"$json" -r '.commands.build')"
145-
if grep <<<"$shell" -q ' buildx '; then
146-
bk="$(../.doi/.bin/bashbrew-buildkit-env-setup.sh)"
147-
bk="$(jq <<<"$bk" -r 'to_entries | map(.key + "=" + .value | @sh) | "export " + join(" ")')"
148-
eval "$bk"
149-
fi
150149
eval "$shell"
151150
152151
- name: Push

0 commit comments

Comments
 (0)