Skip to content

Commit

Permalink
add cloudbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
willscott committed Jan 29, 2021
1 parent ed3c230 commit 77cc05d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
registry: docker.pkg.github.com
repository: ipfs-shipyard/ipfs-counter/ipfs-counter
tags: latest
tag_with_ref: true
Expand Down
17 changes: 17 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
id: Build
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/ipfs-counter:$SHORT_SHA'
- '-t'
- 'gcr.io/$PROJECT_ID/ipfs-counter:latest'
- '.'

- name: 'gcr.io/cloud-builders/docker'
id: Push
args:
- 'push'
- 'gcr.io/$PROJECT_ID/ipfs-counter'
- '--all-tags'

0 comments on commit 77cc05d

Please sign in to comment.