Skip to content

Commit

Permalink
Create deploy_gcr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JaciBrunning authored Mar 14, 2020
1 parent 2e75816 commit 2feff9a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy_gcr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to GCR

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout

- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x

- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '270.0.0'
service_account_email: ${{ secrets.GCP_EMAIL }}
service_account_key: ${{ secrets.GCP_KEY }}

- run: gcloud auth configure-docker
- run: ruby docker.rb push

0 comments on commit 2feff9a

Please sign in to comment.