Browse Source

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
pull/702/head
Timothe Litt 4 years ago
parent
commit
a83240400c
Failed to extract signature
7 changed files with 10 additions and 4 deletions
  1. +2
    -0
      .github/workflows/run-tests-staging-duckdns.yml
  2. +2
    -0
      .github/workflows/run-tests-staging-dynu.yml
  3. +1
    -1
      test/Dockerfile-centos7-duckdns
  4. +1
    -1
      test/Dockerfile-centos7-dynu
  5. +1
    -1
      test/Dockerfile-ubuntu-duckdns
  6. +1
    -1
      test/Dockerfile-ubuntu-dynu
  7. +2
    -0
      test/run-test.sh

+ 2
- 0
.github/workflows/run-tests-staging-duckdns.yml View File

@ -8,6 +8,8 @@ on:
pull_request:
branches:
- master
env:
DUCKDNS_TOKEN: ${{ secrets.DUCKDNS_TOKEN }}
jobs:
test-centos7-duckdns:
runs-on: ubuntu-latest


+ 2
- 0
.github/workflows/run-tests-staging-dynu.yml View File

@ -8,6 +8,8 @@ on:
pull_request:
branches:
- master
env:
DYNU_API_KEY: ${{ secrets.DYNU_API_KEY }}
jobs:
test-centos7-dynu:
runs-on: ubuntu-latest


+ 1
- 1
test/Dockerfile-centos7-duckdns View File

@ -14,7 +14,7 @@ ENV LC_ALL en_US.UTF-8
ENV staging "true"
ENV dynamic_dns "dynu"
ENV DUCKDNS_TOKEN 1d616aa9-b8e4-4bb4-b312-3289de82badb
#ENV DUCKDNS_TOKEN
WORKDIR /root
RUN mkdir -p /etc/nginx/pki/private


+ 1
- 1
test/Dockerfile-centos7-dynu View File

@ -14,7 +14,7 @@ ENV LC_ALL en_US.UTF-8
ENV staging "true"
ENV dynamic_dns "duckdns"
ENV DYNU_API_KEY 65cXefd35XbYf36546eg5dYcZT6X52Y2
#ENV DYNU_API_KEY
WORKDIR /root
RUN mkdir /etc/nginx/pki


+ 1
- 1
test/Dockerfile-ubuntu-duckdns View File

@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND noninteractive
# Ensure tests in this image use the staging server
ENV staging "true"
ENV dynamic_dns "duckdns"
ENV DUCKDNS_TOKEN 1d616aa9-b8e4-4bb4-b312-3289de82badb
#ENV DUCKDNS_TOKEN
# Update and install required software
RUN apt-get update --fix-missing


+ 1
- 1
test/Dockerfile-ubuntu-dynu View File

@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND noninteractive
# Ensure tests in this image use the staging server
ENV staging "true"
ENV dynamic_dns "dynu"
ENV DYNU_API_KEY 65cXefd35XbYf36546eg5dYcZT6X52Y2
#ENV DYNU_API_KEY
# Update and install required software
RUN apt-get update --fix-missing


+ 2
- 0
test/run-test.sh View File

@ -38,6 +38,8 @@ docker run \
--env GETSSL_IDN_HOST=$GETSSL_IDN_HOST \
--env GETSSL_OS=$GETSSL_OS \
--env GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" \
--env DUCKDNS_TOKEN="${DUCKDNS_TOKEN}" \
--env DYNU_API_KEY="${DYNU_API_KEY}" \
-v "$(pwd)":/getssl \
--rm \
--network ${PWD##*/}_acmenet \


Loading…
Cancel
Save