Skip to content

Commit a832404

Browse files
committed
Use GitHub secrets for dynamic dns test credentials
Note: To add the secrets to your repository on GitHub Goto Actions -> Settings -> Secrets New Repository Secret Add DUCKDNS_TOKEN Add DYNU_API_KEY
1 parent 1982a94 commit a832404

File tree

7 files changed

+10
-4
lines changed

7 files changed

+10
-4
lines changed

.github/workflows/run-tests-staging-duckdns.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
pull_request:
99
branches:
1010
- master
11+
env:
12+
DUCKDNS_TOKEN: ${{ secrets.DUCKDNS_TOKEN }}
1113
jobs:
1214
test-centos7-duckdns:
1315
runs-on: ubuntu-latest

.github/workflows/run-tests-staging-dynu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
pull_request:
99
branches:
1010
- master
11+
env:
12+
DYNU_API_KEY: ${{ secrets.DYNU_API_KEY }}
1113
jobs:
1214
test-centos7-dynu:
1315
runs-on: ubuntu-latest

test/Dockerfile-centos7-duckdns

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ENV LC_ALL en_US.UTF-8
1414

1515
ENV staging "true"
1616
ENV dynamic_dns "dynu"
17-
ENV DUCKDNS_TOKEN 1d616aa9-b8e4-4bb4-b312-3289de82badb
17+
#ENV DUCKDNS_TOKEN
1818

1919
WORKDIR /root
2020
RUN mkdir -p /etc/nginx/pki/private

test/Dockerfile-centos7-dynu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ENV LC_ALL en_US.UTF-8
1414

1515
ENV staging "true"
1616
ENV dynamic_dns "duckdns"
17-
ENV DYNU_API_KEY 65cXefd35XbYf36546eg5dYcZT6X52Y2
17+
#ENV DYNU_API_KEY
1818

1919
WORKDIR /root
2020
RUN mkdir /etc/nginx/pki

test/Dockerfile-ubuntu-duckdns

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND noninteractive
88
# Ensure tests in this image use the staging server
99
ENV staging "true"
1010
ENV dynamic_dns "duckdns"
11-
ENV DUCKDNS_TOKEN 1d616aa9-b8e4-4bb4-b312-3289de82badb
11+
#ENV DUCKDNS_TOKEN
1212

1313
# Update and install required software
1414
RUN apt-get update --fix-missing

test/Dockerfile-ubuntu-dynu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND noninteractive
88
# Ensure tests in this image use the staging server
99
ENV staging "true"
1010
ENV dynamic_dns "dynu"
11-
ENV DYNU_API_KEY 65cXefd35XbYf36546eg5dYcZT6X52Y2
11+
#ENV DYNU_API_KEY
1212

1313
# Update and install required software
1414
RUN apt-get update --fix-missing

test/run-test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ docker run \
3838
--env GETSSL_IDN_HOST=$GETSSL_IDN_HOST \
3939
--env GETSSL_OS=$GETSSL_OS \
4040
--env GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" \
41+
--env DUCKDNS_TOKEN="${DUCKDNS_TOKEN}" \
42+
--env DYNU_API_KEY="${DYNU_API_KEY}" \
4143
-v "$(pwd)":/getssl \
4244
--rm \
4345
--network ${PWD##*/}_acmenet \

0 commit comments

Comments
 (0)