Skip to content

Instantly share code, notes, and snippets.

@youyo
Created June 14, 2016 16:00
Show Gist options
  • Save youyo/5719d96f6140c75026bd555f8e5a8e86 to your computer and use it in GitHub Desktop.
Save youyo/5719d96f6140c75026bd555f8e5a8e86 to your computer and use it in GitHub Desktop.
build:
box:
id: youyo/hugo:latest
cmd: /bin/sh
steps:
- script:
name: Build static pages.
code: |-
hugo
deploy:
box:
id: google/cloud-sdk:latest
cmd: /bin/bash
steps:
- script:
name: Authentification
code: |-
gcloud config set project blog-youyo-info
openssl aes-256-cbc -k ${DECRYPT_KEY} -d -in encrypted/blog-youyo-info-5441f6dd1e43.json.encrypted -out private/blog-youyo-info-5441f6dd1e43.json
gcloud auth activate-service-account --key-file private/blog-youyo-info-5441f6dd1e43.json
- script:
name: Deploy GAE
code: |-
gcloud --quiet preview app deploy app.yaml --project blog-youyo-info --promote
cache:
box:
id: youyo/curl:latest
cmd: /bin/sh
steps:
- script:
name: Clear Cache
code: |-
curl -X POST -H "Fastly-Key: ${FASTLY_APIKEY}" https://api.fastly.com/service/${FASTLY_SERVICE_ID}/purge_all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment