Skip to content

Instantly share code, notes, and snippets.

View tomasbackman's full-sized avatar

Tomas Bäckman tomasbackman

View GitHub Profile
@gordonbondon
gordonbondon / apply.sh
Created January 5, 2020 15:26
Bash scripts for atlantis custom steps
#!/usr/bin/env bash
set -e
# dont add pipefail because we need to catch exit code inside pipe
MISSING_VAR_MESSAGE='must be running inside atlantis'
: "${ATLANTIS_TERRAFORM_VERSION:?$MISSING_VAR_MESSAGE}"
: "${DIR:?$MISSING_VAR_MESSAGE}"