Skip to content

Commit 2feff9a

Browse files
authored
Create deploy_gcr.yml
1 parent 2e75816 commit 2feff9a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy_gcr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy to GCR
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
name: Checkout
13+
14+
- name: Set up Ruby 2.6
15+
uses: actions/setup-ruby@v1
16+
with:
17+
ruby-version: 2.6.x
18+
19+
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
20+
with:
21+
version: '270.0.0'
22+
service_account_email: ${{ secrets.GCP_EMAIL }}
23+
service_account_key: ${{ secrets.GCP_KEY }}
24+
25+
- run: gcloud auth configure-docker
26+
- run: ruby docker.rb push

0 commit comments

Comments
 (0)