File tree Expand file tree Collapse file tree
infrastructure/nomad/playbooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 221221 fi
222222 set +x
223223 goreleaser release --snapshot --config=./{{ artifact.path }}/.goreleaser.tmp.yml
224+ if [ $? -ne 0 ]; then exit 1; fi
224225 rm ./{{ artifact.path }}/.goreleaser.tmp.yml
225226 fi
226227 flock -v -u 192
231232 echo "${ARTIFACT}" >> "${INVENTORY}"
232233 flock -v -u 192
233234 tar -czvf "${ARTIFACT}" ./{{ artifact.path }}
235+ if [ $? -ne 0 ]; then exit 1; fi
234236 fi
235237 {% endif %}
236238
245247 --passphrase="${PASSPHRASE}" \
246248 --log-fmt="json"
247249 )
250+ if [ $? -ne 0 ]; then exit 1; fi
248251 ARTIFACT_PATH="$(echo ${RESULT} | jq -e -r '.path // empty' 2>/dev/null)"
249252 flock -v -x 192
250253 echo "${ARTIFACT_PATH}" >> "${INVENTORY}"
261264 "{{ artifact.keystore.name }}_password": $keystore_password
262265 }' \
263266 > "${SECRETS}"
267+ if [ $? -ne 0 ]; then exit 1; fi
264268 flock -v -u 191
265269
266270 ADDRESS="$(cat ${ARTIFACT_PATH} | jq -r '.address')"
309313 "{{ artifact.keystore.name }}_password": $keystore_password
310314 }' \
311315 > "${SECRETS}"
316+ if [ $? -ne 0 ]; then exit 1; fi
312317 flock -v -u 191
313318
314319 ADDRESS=$(echo "${KEYSTORE}" | jq -r '.address')
331336 {% endif %}
332337 {% if artifact.boot_key | default(false) and environments[env].secrets == 'generate' %}
333338 bootnode -genkey "${DESTINATION_DIR}/boot.key"
339+ if [ $? -ne 0 ]; then exit 1; fi
334340
335341 flock -v -x 191
336342 cat "${SECRETS}" | jq \
342348 ($item_name + "_boot_key_address"): $boot_key_address
343349 }' \
344350 > "${SECRETS}"
351+ if [ $? -ne 0 ]; then exit 1; fi
345352 flock -v -u 191
346353
347354 {% endif %}
You can’t perform that action at this time.
0 commit comments