Adding bigquery-postgres image #150
This file contains 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: Build jupyterlab-dataops Image | |
on: | |
pull_request: | |
paths: | |
- 'jupyterlab-dataops/**' | |
jobs: | |
buildx-dataops: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
platform: [jupyterhub-base, bigquery-postgres, snowflake] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: docker/setup-buildx-action@v1 | |
id: buildx-dataops | |
with: | |
install: true | |
- name: Cache Docker layers | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ github.event.pull_request.head.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: name/app | |
- name: Login to GCR | |
uses: docker/login-action@v2 | |
with: | |
registry: gcr.io | |
username: _json_key | |
password: ${{ secrets.PUBLIC_GCR_DEPLOY_SA_KEY }} | |
- name: Build jupyterlab-dataops | |
uses: docker/build-push-action@v3 | |
with: | |
context: jupyterlab-dataops | |
builder: ${{ steps.buildx.outputs.name }} | |
target: ${{ matrix.platform }} | |
push: true | |
tags: gcr.io/getindata-images-public/jupyterlab-dataops:${{ matrix.platform }}-${{ github.event.pull_request.head.sha }} | |
labels: ${{ steps.meta.outputs.labels }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new | |
- name: Move cache | |
run: | | |
rm -rf /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |