Skip to content

Commit

Permalink
Set set -euo pipefail in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Jun 14, 2023
1 parent f4bdfe1 commit 0fe1d76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Build the image.
id: build
run: |
set -euo pipefail
printf "::group::Sending context\n"
IMAGE=spiped:${VARIANT/\//-}-$(date +%s)
docker build "$VARIANT" --tag "$IMAGE" |sed 's/^Step/::endgroup::\n::group::Step/'
Expand All @@ -31,7 +32,9 @@ jobs:
- name: Start the encrypting spiped.
run: docker run --name spiped_test_e -d -v $(pwd)/spiped-keyfile:/spiped/key:ro -p 80:80 --link spiped_test_d:spiped_test_d ${{ steps.build.outputs.image }} -e -s '[0.0.0.0]:80' -t 'spiped_test_d:8080'
- name: Send request through spiped.
run: docker run --name spiped_test_curl --link spiped_test_e:spiped_test_e buildpack-deps:curl curl -v -fsSL --connect-to '::spiped_test_e:' http://example.com |grep '<h1>Example Domain</h1>'
run: |
set -euo pipefail
docker run --name spiped_test_curl --link spiped_test_e:spiped_test_e buildpack-deps:curl curl -v -fsSL --connect-to '::spiped_test_e:' http://example.com |grep '<h1>Example Domain</h1>'
- name: Show Containers and Images
run: |
printf "::group::docker ps -a\n"
Expand Down

0 comments on commit 0fe1d76

Please sign in to comment.