diff --git a/.github/workflows/container-run.yml b/.github/workflows/container-run.yml index 57e927a..31b79b6 100644 --- a/.github/workflows/container-run.yml +++ b/.github/workflows/container-run.yml @@ -4,6 +4,9 @@ name: Container Run on: workflow_dispatch: +defaults: + run: + shell: bash -l -o errexit -o pipefail -o xtrace {0} jobs: @@ -16,10 +19,20 @@ jobs: - name: Run container run: | + uname -m + curl 'https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64' \ + --output '/usr/local/bin/mkcert' + chmod +x '/usr/local/bin/mkcert' + mkcert -install + mkcert -cert-file '/tmp/cert.pem' -key-file '/tmp/key.pem' localhost docker run \ --name httpbun \ --detach \ - --publish 80:80 \ + --publish 443:443 \ + --volume /tmp:/tmp:ro \ + --env HTTPBUN_TLS_CERT=/tmp/cert.pem \ + --env HTTPBUN_TLS_KEY=/tmp/key.pem \ + --pull always \ sharat87/httpbun sleep 1 @@ -28,4 +41,6 @@ jobs: set -o errexit set -o xtrace - curl --silent --show-error --fail --location localhost/get + curl --verbose --silent --show-error --fail --location https://localhost/get + + docker logs httpbun