Skip to content

Commit 7da3b55

Browse files
committed
set exception handling and debug opts on inline bash steps
1 parent e6582d2 commit 7da3b55

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/promote-downstreams.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
id: parse
4242
shell: bash
4343
run: |
44+
set -o pipefail
45+
set -o xtrace
4446
if [[ "${GITHUB_REF_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
4547
echo "GITHUB_REF_NAME=${GITHUB_REF_NAME} is a semver release ref"
4648
echo "version=${GITHUB_REF_NAME#v}" | tee -a $GITHUB_OUTPUT
@@ -64,6 +66,8 @@ jobs:
6466
id: set_matrix
6567
shell: bash
6668
run: |
69+
set -o pipefail
70+
set -o xtrace
6771
matrix="$(
6872
yq --output-format json .github/cpack-matrix.yml \
6973
| jq --compact-output '.cpack_matrix'
@@ -87,13 +91,17 @@ jobs:
8791
- name: Tag Latest ziti-edge-tunnel
8892
shell: bash
8993
run: >
94+
set -o pipefail;
95+
set -o xtrace;
9096
docker buildx imagetools create --tag
9197
${{ env.ZITI_EDGE_TUNNEL_IMAGE }}:latest
9298
${{ env.ZITI_EDGE_TUNNEL_IMAGE }}:${{ needs.parse_version.outputs.version }}
9399
94100
- name: Tag Latest ziti-host
95101
shell: bash
96102
run: >
103+
set -o pipefail;
104+
set -o xtrace;
97105
docker buildx imagetools create --tag
98106
${{ env.ZITI_HOST_IMAGE }}:latest
99107
${{ env.ZITI_HOST_IMAGE }}:${{ needs.parse_version.outputs.version }}
@@ -122,6 +130,8 @@ jobs:
122130
if: matrix.distro.type == 'rpm'
123131
shell: bash
124132
run: >
133+
set -o pipefail;
134+
set -o xtrace;
125135
jf rt copy
126136
--recursive=false
127137
--flat=true
@@ -133,6 +143,8 @@ jobs:
133143
if: matrix.distro.type == 'deb'
134144
shell: bash
135145
run: >
146+
set -o pipefail;
147+
set -o xtrace;
136148
jf rt copy
137149
--recursive=false
138150
--flat=true

0 commit comments

Comments
 (0)