This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
question_data = [ | |
{ | |
"category": "Science: Computers", | |
"type": "boolean", | |
"difficulty": "medium", | |
"question": "The HTML5 standard was published in 2014.", | |
"correct_answer": "True", | |
"incorrect_answers": [ | |
"False" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: | |
name: hashicorp/terraform:light | |
entrypoint: | |
- '/usr/bin/env' | |
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' | |
- 'AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}' | |
- 'AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}' | |
- 'AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}' | |
variables: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
MAINTAINER NGINX Docker Maintainers “docker-maint@nginx.com” | |
ENV NGINX_VERSION 1.11.9–1~jessie | |
RUN apt-key adv — keyserver hkp://pgp.mit.edu:80 — recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 \ | |
&& echo “deb http://nginx.org/packages/mainline/debian/ jessie nginx” >> /etc/apt/sources.list \ | |
&& apt-get update \ | |
&& apt-get install — no-install-recommends — no-install-suggests -y \ | |
ca-certificates \ | |
nginx=${NGINX_VERSION} \ | |
nginx-module-xslt \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
build: | |
cache: ~ | |
image: "docker:latest" | |
script: | |
- "docker version" | |
- "docker build — pull -t “$IMAGE_NAME:${CI_BUILD_REF_NAME}_${CI_BUILD_REF}” ." | |
- "docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlabregistry" | |
- "docker push “$IMAGE_NAME:${CI_BUILD_REF_NAME}_${CI_BUILD_REF}”" | |
services: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TAG=${1} | |
NS=${2} | |
URL=${3} | |
export BUILD_NUMBER=${TAG} | |
export NAMESPACE=${NS} | |
export ENV_URL=${URL} | |
for f in templates/*.yml | |
do | |
envsubst < $f > “.generated/$(basename $f)” |