From 8ffa817136976d1cc068fee84e014ee229b0c393 Mon Sep 17 00:00:00 2001 From: Paul Stey Date: Thu, 29 Jul 2021 14:08:18 -0400 Subject: [PATCH] rename and update 2 apma workflow files --- ...360-fall-tag.yml => apma0350-fall-tag.yml} | 24 +++++++++---------- .../workflows/{apma0360.yml => apma0350.yml} | 16 ++++++------- 2 files changed, 20 insertions(+), 20 deletions(-) rename .github/workflows/{apma0360-fall-tag.yml => apma0350-fall-tag.yml} (65%) rename .github/workflows/{apma0360.yml => apma0350.yml} (76%) diff --git a/.github/workflows/apma0360-fall-tag.yml b/.github/workflows/apma0350-fall-tag.yml similarity index 65% rename from .github/workflows/apma0360-fall-tag.yml rename to .github/workflows/apma0350-fall-tag.yml index 9f32915c..8ca4176e 100644 --- a/.github/workflows/apma0360-fall-tag.yml +++ b/.github/workflows/apma0350-fall-tag.yml @@ -1,8 +1,8 @@ -name: Tag production image for apma0360 +name: Tag production image for apma0350 on: [workflow_dispatch] env: - CLASS: apma0360 + CLASS: apma0350 TARGET: base jobs: @@ -25,16 +25,16 @@ jobs: - name: Build and Push JH Image run: | COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up jh_image - docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0360:${GITHUB_REF##*/} - docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0360:${GITHUB_SHA} - docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0360:latest - docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0360:fall-2020 - docker push gcr.io/jupyterhub-docker-images/apma0360:latest - docker push gcr.io/jupyterhub-docker-images/apma0360:fall-2020 - docker push gcr.io/jupyterhub-docker-images/apma0360:${GITHUB_REF##*/} - docker push gcr.io/jupyterhub-docker-images/apma0360:${GITHUB_SHA} + docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0350:${GITHUB_REF##*/} + docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0350:${GITHUB_SHA} + docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0350:latest + docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0350:fall-2020 + docker push gcr.io/jupyterhub-docker-images/apma0350:latest + docker push gcr.io/jupyterhub-docker-images/apma0350:fall-2020 + docker push gcr.io/jupyterhub-docker-images/apma0350:${GITHUB_REF##*/} + docker push gcr.io/jupyterhub-docker-images/apma0350:${GITHUB_SHA} - name: Upload Cond Env Files to Google Storage Bucket run: | - gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2020/apma0360/past/${GITHUB_SHA}/conda - gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2020/apma0360/latest/conda \ No newline at end of file + gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2020/apma0350/past/${GITHUB_SHA}/conda + gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2020/apma0350/latest/conda \ No newline at end of file diff --git a/.github/workflows/apma0360.yml b/.github/workflows/apma0350.yml similarity index 76% rename from .github/workflows/apma0360.yml rename to .github/workflows/apma0350.yml index 60bc6c06..a4a766e2 100644 --- a/.github/workflows/apma0360.yml +++ b/.github/workflows/apma0350.yml @@ -1,15 +1,15 @@ -name: Build Image for apma0360 +name: Build Image for apma0350 on: push: paths: - - 'requirements/classes/apma0360/**' + - 'requirements/classes/apma0350/**' - 'Dockerfile' - 'docker-compose.yml' - 'scripts/**' - - '.github/workflows/apma0360.yml' + - '.github/workflows/apma0350.yml' env: - CLASS: apma0360 + CLASS: apma0350 TARGET: base jobs: @@ -39,10 +39,10 @@ jobs: - name: Build and Push JH Image run: | COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up jh_image - docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0360:${GITHUB_REF##*/} - docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0360:latest - docker push gcr.io/jupyterhub-docker-images/apma0360:latest - docker push gcr.io/jupyterhub-docker-images/apma0360:${GITHUB_REF##*/} + docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0350:${GITHUB_REF##*/} + docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/apma0350:latest + docker push gcr.io/jupyterhub-docker-images/apma0350:latest + docker push gcr.io/jupyterhub-docker-images/apma0350:${GITHUB_REF##*/}