From 8787b19c79490a158e44ca4ca559baf87f5a0820 Mon Sep 17 00:00:00 2001 From: Daniel Ecer Date: Wed, 19 Aug 2020 13:50:38 +0200 Subject: [PATCH] push docker release image (#22) * enabled pushing docker release image * updated readme --- Jenkinsfile | 6 ++++++ README.md | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 1d0763d..7e63d01 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -69,6 +69,12 @@ elifePipeline { } } } + + stage 'Push release bigquery-views-manager image', { + def image = DockerImage.elifesciences(this, 'bigquery-views-manager', commit) + image.tag('latest').push() + image.tag(version).push() + } } } } diff --git a/README.md b/README.md index 560603e..486128e 100644 --- a/README.md +++ b/README.md @@ -207,6 +207,21 @@ The following commands are supported: * `delete-views` * `delete-materialized-tables` +## Docker Image + +There is also a Docker Image that can be used directly: + +```bash +docker pull elifesciences/bigquery-views-manager:latest +docker run --rm \ + --volume ~/.config/gcloud:/root/.config/gcloud \ + --volume $$PWD/views:/data/views \ + --env GOOGLE_CLOUD_PROJECT=my-gcp-project \ + elifesciences/bigquery-views-manager:latest \ + diff-views \ + --dataset my_dataset +``` + ## Similar Projects * [BigQuery-DatasetManager](https://github.com/laughingman7743/BigQuery-DatasetManager)