Skip to content

Instantly share code, notes, and snippets.

View kczarzasty's full-sized avatar

Kevin Czarzasty kczarzasty

View GitHub Profile
#!/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)”
---
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:
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 \
@kczarzasty
kczarzasty / .gitlab-ci.yml
Created July 29, 2021 19:07 — forked from bmwitcher/.gitlab-ci.yml
Gitlab.yml file for creating CI/CD
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:
question_data = [
{
"category": "Science: Computers",
"type": "boolean",
"difficulty": "medium",
"question": "The HTML5 standard was published in 2014.",
"correct_answer": "True",
"incorrect_answers": [
"False"
]