Public Repository

Last pushed: 6 months ago
Short Description
Google cloud CLI + Hugo
Full Description

Hugo + Go + GCloud SDK

Docker: blacha/gcloud-hugo

Pipeline to deploy static sites made with hugo into Google cloud Storage.

  • GCloud SDK 154.0.1
  • Hugo 0.21
  • Go 1.8.1
branches:
    master:
      - step:
        script:
          - hugo
          # GCloud Auth
          - echo $GCLOUD_API_KEY | base64 --decode --ignore-garbage > ./gcloud-api-key.json
          - gcloud auth activate-service-account --key-file gcloud-api-key.json
          # Linking to the Google Cloud project
          - gcloud config set project $PROJECT_NAME
          # Deploy to dev
          - gsutil -m rsync -r public/ gs://$DEV_BUCKET_NAME/
Docker Pull Command
Owner
blacha