Permalink
Browse files

Remove deployment to Azure Stroage Account

  • Loading branch information...
1 parent 3ffa75e commit aaf7fbddf7be3a0c4a745bddfc455408fa821eca @matsuu matsuu committed Oct 25, 2016
Showing with 0 additions and 61 deletions.
  1. +0 −15 azure/index.html
  2. +0 −46 wercker.yml
View
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- <a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2F@AZURE_STORAGE_ACCOUNT@.blob.core.windows.net%2F@CONTAINER_NAME@%2Fazuredeploy.json" target="_blank">
- <img src="http://azuredeploy.net/deploybutton.png"/>
- </a>
- <a href="http://armviz.io/#/?load=https%3A%2F%2F@AZURE_STORAGE_ACCOUNT@.blob.core.windows.net%2F@CONTAINER_NAME@%2Fazuredeploy.json" target="_blank">
- <img src="http://armviz.io/visualizebutton.png"/>
- </a>
- </body>
-</html>
View
@@ -1,46 +0,0 @@
-box: ubuntu
-build:
- steps:
- - script:
- name: initialize
- code: |
- export DEBIAN_FRONTEND=noninteractive
- apt-get update
- apt-get install -y python-pip libffi-dev libssl-dev
- pip install azure-cli
- mkdir output
- - script:
- name: parepare webapp
- code: |
- tar zcf output/webapp.tar.gz --exclude=docker-compose-all*.yml webapp
- - script:
- name: parepare ansible
- code: |
- sed -i \
- -e "s:@AZURE_STORAGE_ACCOUNT@:$AZURE_STORAGE_ACCOUNT:g" \
- -e "s:@CONTAINER_NAME@:$WERCKER_GIT_COMMIT:g" \
- ansible/playbook/roles/app/tasks//main.yml
- tar zcf output/ansible.tar.gz ansible
- - script:
- name: prepare azure template
- code: |
- sed \
- -e "s:@AZURE_STORAGE_ACCOUNT@:$AZURE_STORAGE_ACCOUNT:g" \
- -e "s:@CONTAINER_NAME@:$WERCKER_GIT_COMMIT:g" \
- azure/azuredeploy.json > output/azuredeploy.json
- - script:
- name: prepare index.html
- code: |
- sed \
- -e "s:@AZURE_STORAGE_ACCOUNT@:$AZURE_STORAGE_ACCOUNT:g" \
- -e "s:@CONTAINER_NAME@:$WERCKER_GIT_COMMIT:g" \
- azure/index.html > output/index.html
- - script:
- name: upload blob
- code: |
- az storage container create --public-access blob --name "$WERCKER_GIT_COMMIT"
- cd output
- az storage blob upload --file webapp.tar.gz --container-name "$WERCKER_GIT_COMMIT" --name webapp.tar.gz
- az storage blob upload --file ansible.tar.gz --container-name "$WERCKER_GIT_COMMIT" --name ansible.tar.gz
- az storage blob upload --file azuredeploy.json --container-name "$WERCKER_GIT_COMMIT" --name azuredeploy.json --content-type application/json
- az storage blob upload --file index.html --container-name "$WERCKER_GIT_COMMIT" --name index.html --content-type text/html

0 comments on commit aaf7fbd

Please sign in to comment.