Make sure the screenshots render correctly #77
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/appstore-api:g${GITHUB_SHA::7} -f Dockerfile.cloudrun . | |
| - name: Push | |
| run: docker push gcr.io/pebble-rebirth/appstore-api:g${GITHUB_SHA::7} |