cleanup and simplify deploy script
This commit is contained in:
parent
8d9e3e1b80
commit
90d948bcca
27
deploy.sh
27
deploy.sh
|
@ -1,27 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -o errexit -o nounset
|
||||
|
||||
terraform get
|
||||
terraform plan
|
||||
terraform apply
|
||||
|
||||
# echo "Setting git user name"
|
||||
# git config user.name $GH_USER_NAME
|
||||
#
|
||||
# echo "Setting git user email"
|
||||
# git config user.email $GH_USER_EMAIL
|
||||
#
|
||||
# echo "Adding git upstream remote"
|
||||
# git remote add upstream "https://$GH_TOKEN@github.com/$GH_REPO.git"
|
||||
#
|
||||
# git checkout master
|
||||
|
||||
|
||||
#
|
||||
# NOW=$(TZ=America/Chicago date)
|
||||
#
|
||||
# git commit -m "tfstate: $NOW [ci skip]"
|
||||
#
|
||||
# echo "Pushing changes to upstream master"
|
||||
# git push upstream master
|
|
@ -1,31 +0,0 @@
|
|||
language: generic
|
||||
|
||||
# establish environment variables
|
||||
# env:
|
||||
# global:
|
||||
# - GH_USER_NAME="travis-ci"
|
||||
# - GH_USER_EMAIL="mikedball@gmail.com"
|
||||
# - GH_REPO="10thmagnitude/terraform"
|
||||
# # encrypted GH_TOKEN and AWS credentials
|
||||
# - secure: "EBtNoRGUNjgom7lk6+O7Zh9A33X/251Cg7j5C+HqfkPMQcQwS6MEAXPT1vbnh1HoQixR1e6VTHdXxvWyE/14+98qtJiHnSbGiY67ZvQNDuFLb2+PKx7xhhl9heNj8Xk1K1SYJtfYQZIvZNl32V9db6eR3r7kKlWlpUVmnSnXrnm4ztI8se45OX/XPjAnARdBvkpbcTSprrAf7Qudc5R86ain18tJah6PICd12TIH4Cpdcr6CVL8kRK808VH+AS2oii7QcKXc084gBOJJLCiwa2DrcSEPOOk0AIn5ft+XVcaCsV6oOc6NliFKEPoJkaxbYWtunDlnqgB6epuaGrf99TfCg4E9R8sXBFqJwdMGDu3xM6Nddw87tMj/oCbUmjrNnl4qAxIMBD2TdjwFS1lNaXAML8W/jx3bNGSEg5MAYrqLL32eJta/vxRJwpCVnXUHxef9JcZMNZcvuKMdHC98JQIYbGRRFZ0cFtqMe63tgWafCi3WS+FIqSWnGdiKZ7dS110ANHaiQkDAZKTlh/9YJpzR9LyOoq7xXYtQIUovyDD2j498mAkcgByEbyZ39k6xMvLHHXsdUq25tdaMvqE3ZUASIDWqDk1QPfxkXX6n62Tj2X1HCA+3JI/DKyEfzt3QV4rntiP4Qv9jSuxNpd47rgsgVFg+HGJmko9QzAA/g+E="
|
||||
|
||||
branches:
|
||||
only:
|
||||
# - master
|
||||
- /^(?i:101).*$/
|
||||
|
||||
# install terraform
|
||||
before_deploy:
|
||||
- curl -fSL "https://releases.hashicorp.com/terraform/0.9.3/terraform_0.9.3_linux_amd64.zip" -o terraform.zip
|
||||
- sudo unzip terraform.zip -d /opt/terraform
|
||||
- sudo ln -s /opt/terraform/terraform /usr/bin/terraform
|
||||
- rm -f terraform.zip
|
||||
|
||||
# terraform apply
|
||||
deploy:
|
||||
- provider: script
|
||||
skip_cleanup: true
|
||||
script: "./deploy.sh"
|
||||
on:
|
||||
repo: 10thmagnitude/terraform
|
||||
branch: master
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
set -o errexit -o nounset
|
||||
|
||||
cd terraform
|
||||
|
||||
terraform get
|
||||
terraform plan
|
||||
terraform apply
|
||||
|
|
Loading…
Reference in New Issue