Permalink
Browse files

Cloudbuild (#33)

* switching to cloudbuild

* cloudbuild implementation
  • Loading branch information...
howarddierking committed Dec 20, 2018
1 parent c435cdb commit 8b788e5e288b0148c6a39067b0f86f174c3cc3d8
Showing with 31 additions and 57 deletions.
  1. +1 −0 .firebaserc
  2. +3 −0 .gitignore
  3. +0 −7 build.sh
  4. +0 −10 buildspec.yml
  5. +0 −20 circle.yml
  6. +15 −0 cloudbuild.yaml
  7. +0 −11 docker-compose.yml
  8. +10 −0 firebase.json
  9. +2 −2 partials/copyright.html
  10. +0 −7 serve.sh
@@ -0,0 +1 @@
{}
@@ -44,3 +44,6 @@ site/

# expanded theme directory
reference/theme-wise-words/

# firebase hosting deployment cache (used for optimizing deployment times)
.firebase/

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,15 @@
steps:
- name: 'gcr.io/cloud-builders/npm'
args: ['install']
- name: 'gcr.io/cloud-builders/npm'
args: ['run', 'build']
env:
- 'COMMIT_SHORT=$SHORT_SHA'
- name: 'gcr.io/$PROJECT_ID/firebase'
args: ['deploy', '--project', '$PROJECT_ID']
secretEnv: ['FIREBASE_TOKEN']

secrets:
- kmsKeyName: 'projects/www-howarddierking-com/locations/global/keyRings/cloudbuilder/cryptoKeys/firebase-token'
secretEnv:
FIREBASE_TOKEN: 'CiQASGBRZUHzZkH1l/8l/OuEwgDlDmISW3m5oaamqBMISCLhvOASVgCM/8WrbTOhEKP2eoEp2CEP8v7611TLgTTDkNm6wq9lEYFcwUMZzi0O1F2J0Jrh9Hs72udo95/+OkvFLbUBj0KYuubPEvpB7rD//tuq8ychOWDjrZYY'

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "site",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
@@ -2,7 +2,7 @@
<div class="row">
<div class="span6 copyright">Copyright 2016 Howard Dierking</div>
<%
let cSha = typeof(GITHUB_COMMIT)==='undefined' ? '0000000000000000000000' : GITHUB_COMMIT;
let cSha = typeof(COMMIT_SHORT)==='undefined' ? '0000000000000000000000' : COMMIT_SHORT;
%>
<div class="span6 copyright" style="text-align: right">Produced from <a href="https://github.com/howarddierking/blog.howarddierking.com/commit/<%= cSha %>"><%= cSha.substring(0, 7) %></a></div>
<div class="span6 copyright" style="text-align: right">Produced from <a href="https://github.com/howarddierking/blog.howarddierking.com/commit/<%= cSha %>"><%= cSha %></a></div>
</div>

This file was deleted.

Oops, something went wrong.

0 comments on commit 8b788e5

Please sign in to comment.