File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments