Skip to content

Commit 7143400

Browse files
authored
Build images with actions
1 parent 92706c3 commit 7143400

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: autobuild
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Checkout submodules
14+
shell: bash
15+
run: |
16+
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
17+
git submodule sync --recursive
18+
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
19+
20+
- name: Log in to GCR
21+
run: echo ${{ secrets.GCLOUD_SERVICE_KEY }} | base64 -d | docker login -u _json_key --password-stdin https://gcr.io/
22+
- name: Build Docker
23+
run: docker build -t gcr.io/pebble-rebirth/lp:g${GITHUB_SHA::7} -f Dockerfile.cloudrun .
24+
- name: Push
25+
run: docker push gcr.io/pebble-rebirth/lp:g${GITHUB_SHA::7}

0 commit comments

Comments
 (0)