-
Notifications
You must be signed in to change notification settings - Fork 2
25 lines (21 loc) · 806 Bytes
/
main.yml
File metadata and controls
25 lines (21 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: autobuild
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Log in to GCR
run: echo ${{ secrets.GCLOUD_SERVICE_KEY }} | base64 -d | docker login -u _json_key --password-stdin https://gcr.io/
- name: Build Docker
run: docker build -t gcr.io/pebble-rebirth/lp:g${GITHUB_SHA::7} -f Dockerfile.cloudrun .
- name: Push
run: docker push gcr.io/pebble-rebirth/lp:g${GITHUB_SHA::7}