Skip to content

Commit

Permalink
chore: create etcd with tls manaually after checking out code instead…
Browse files Browse the repository at this point in the history
… of resorting to service container
  • Loading branch information
tokers committed Nov 2, 2020
1 parent d647e90 commit d7960b1
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ jobs:
env:
ALLOW_NONE_AUTHENTICATION: yes
ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379
etcd_tls:
image: bitnami/etcd:3.4.0
ports:
- 12379:12379
- 12380:12380
env:
ALLOW_NONE_AUTHENTICATION: yes
ETCD_ADVERTISE_CLIENT_URLS: https://0.0.0.0:12379
ETCD_LISTEN_PEER_URLS: https://0.0.0.0:12380
ETCD_CERT_FILE: ./t/certs/etcd.pem
ETCD_KEY_FILE: ./t/certs/etcd.key

steps:
- name: Check out code
Expand Down Expand Up @@ -75,6 +64,20 @@ jobs:
redis-cli -h 127.0.0.1 -p 5000 ping
redis-cli -h 127.0.0.1 -p 5000 cluster nodes
- name: Running etcd server with TLS
if: matrix.os_name == 'linux_openresty'
run: |
sudo docker run -d -p 12379:12379 -p 12380:12380 \
-e ALLOW_NONE_AUTHENTICATION=yes \
-e ETCD_ADVERTISE_CLIENT_URLS=https://0.0.0.0:12379 \
-e ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:12379 \
-e ETCD_CERT_FILE=/certs/etcd.pem \
-e ETCD_KEY_FILE=/certs/etcd.key \
-e GITHUB_ACTIONS=true \
-e CI=true \
-v ${{ github.workspace }}/t/certs:/certs \
bitnami/etcd:3.4.0
- name: Linux Install
run: sudo ./.travis/${{ matrix.os_name }}_runner.sh do_install

Expand Down

0 comments on commit d7960b1

Please sign in to comment.