You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.8 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. name: Ubuntu
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. paths:
  7. - '*.sh'
  8. - '.github/workflows/Ubuntu.yml'
  9. pull_request:
  10. branches:
  11. - dev
  12. paths:
  13. - '*.sh'
  14. - '.github/workflows/Ubuntu.yml'
  15. jobs:
  16. Ubuntu:
  17. strategy:
  18. matrix:
  19. include:
  20. - TEST_ACME_Server: "LetsEncrypt.org_test"
  21. CA_ECDSA: ""
  22. CA: ""
  23. CA_EMAIL: ""
  24. TEST_PREFERRED_CHAIN: (STAGING) Pretend Pear X1
  25. - TEST_ACME_Server: "ZeroSSL.com"
  26. CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
  27. CA: "ZeroSSL RSA Domain Secure Site CA"
  28. CA_EMAIL: "githubtest@acme.sh"
  29. TEST_PREFERRED_CHAIN: ""
  30. - TEST_ACME_Server: "https://localhost:9000/acme/acme/directory"
  31. CA_ECDSA: "Smallstep Intermediate CA"
  32. CA: "Smallstep Intermediate CA"
  33. CA_EMAIL: ""
  34. TEST_PREFERRED_CHAIN: ""
  35. NO_REVOKE: 1
  36. - TEST_ACME_Server: "https://localhost:9000/acme/acme/directory"
  37. CA_ECDSA: "Smallstep Intermediate CA"
  38. CA: "Smallstep Intermediate CA"
  39. CA_EMAIL: ""
  40. TEST_PREFERRED_CHAIN: ""
  41. NO_REVOKE: 1
  42. TEST_IPCERT: 1
  43. TestingDomain: "172.17.0.1"
  44. runs-on: ubuntu-latest
  45. env:
  46. TEST_LOCAL: 1
  47. TEST_ACME_Server: ${{ matrix.TEST_ACME_Server }}
  48. CA_ECDSA: ${{ matrix.CA_ECDSA }}
  49. CA: ${{ matrix.CA }}
  50. CA_EMAIL: ${{ matrix.CA_EMAIL }}
  51. NO_ECC_384: ${{ matrix.NO_ECC_384 }}
  52. TEST_PREFERRED_CHAIN: ${{ matrix.TEST_PREFERRED_CHAIN }}
  53. NO_REVOKE: ${{ matrix.NO_REVOKE }}
  54. TEST_IPCERT: ${{ matrix.TEST_IPCERT }}
  55. TestingDomain: ${{ matrix.TestingDomain }}
  56. steps:
  57. - uses: actions/checkout@v2
  58. - name: Install tools
  59. run: sudo apt-get install -y socat
  60. - name: Start StepCA
  61. if: ${{ matrix.TEST_ACME_Server=='https://localhost:9000/acme/acme/directory' }}
  62. run: |
  63. docker run --rm -d \
  64. -p 9000:9000 \
  65. -e "DOCKER_STEPCA_INIT_NAME=Smallstep" \
  66. -e "DOCKER_STEPCA_INIT_DNS_NAMES=localhost,$(hostname -f)" \
  67. --name stepca \
  68. smallstep/step-ca \
  69. && sleep 5 && docker exec stepca step ca provisioner add acme --type ACME \
  70. && docker exec stepca kill -1 1 \
  71. && docker exec stepca cat /home/step/certs/root_ca.crt | sudo bash -c "cat - >>/etc/ssl/certs/ca-certificates.crt"
  72. - name: Clone acmetest
  73. run: |
  74. cd .. \
  75. && git clone https://github.com/acmesh-official/acmetest.git \
  76. && cp -r acme.sh acmetest/
  77. - name: Run acmetest
  78. run: |
  79. cd ../acmetest \
  80. && sudo --preserve-env ./letest.sh