diff options
author | Mohammed Al Sahaf <[email protected]> | 2022-10-04 17:03:10 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-04 17:03:10 +0300 |
commit | c28cd29fe7ffc4b7f7bebb16fe721f25abab2446 (patch) | |
tree | f6c49715ab47e321a2c9122be9679db8c6eb8093 /.github/workflows/ci.yml | |
parent | da24f57daca431704f953500386758eae2b8de1b (diff) | |
download | caddy-c28cd29fe7ffc4b7f7bebb16fe721f25abab2446.tar.gz caddy-c28cd29fe7ffc4b7f7bebb16fe721f25abab2446.zip |
ci: enhance the CI/CD flow (#5118)
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f194aa2a2..ca0f02d9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -156,17 +156,18 @@ jobs: short_sha=$(git rev-parse --short HEAD) # The environment is fresh, so there's no point in keeping accepting and adding the key. - rsync -arz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress --delete --exclude '.git' . [email protected]:/var/tmp/"$short_sha" - ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -t [email protected] "cd /var/tmp/$short_sha; go version; go env; printf "\n\n";CGO_ENABLED=0 go test -v ./..." + rsync -arz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress --delete --exclude '.git' . "$CI_USER"@ci-s390x.caddyserver.com:/var/tmp/"$short_sha" + ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -t "$CI_USER"@ci-s390x.caddyserver.com "cd /var/tmp/$short_sha; go version; go env; printf "\n\n";CGO_ENABLED=0 go test -v ./..." test_result=$? # There's no need leaving the files around - ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] "rm -rf /var/tmp/'$short_sha'" + ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$CI_USER"@ci-s390x.caddyserver.com "rm -rf /var/tmp/'$short_sha'" echo "Test exit code: $test_result" exit $test_result env: SSH_KEY: ${{ secrets.S390X_SSH_KEY }} + CI_USER: ${{ secrets.CI_USER }} goreleaser-check: runs-on: ubuntu-latest |