From 3977fe9b6c74ca7f12d111de58940bc735082e94 Mon Sep 17 00:00:00 2001 From: Tisham Dhar Date: Fri, 12 Jun 2020 08:24:42 +0000 Subject: [PATCH] #136 Keep building old image name for compatibility --- .github/workflows/docker.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 03725999f..8cd17f0df 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,6 +13,7 @@ on: - created env: + OLD_IMAGE_NAME: opendatacube/dashboard IMAGE_NAME: opendatacube/explorer jobs: @@ -34,6 +35,14 @@ jobs: password: "${{ secrets.DockerPassword }}" build_extra_args: "--build-arg=ENVIRONMENT=deployment" + - name: Build and Push latest Docker image (old name) + uses: whoan/docker-build-with-cache-action@v4 + with: + image_name: ${{ env.OLD_IMAGE_NAME }} + username: gadockersvc + password: "${{ secrets.DockerPassword }}" + build_extra_args: "--build-arg=ENVIRONMENT=deployment" + - name: Run vulnerability scanner uses: aquasecurity/trivy-action@0.0.6 with: @@ -61,6 +70,16 @@ jobs: password: "${{ secrets.DockerPassword }}" build_extra_args: "--build-arg=ENVIRONMENT=deployment" + - name: Build and Push release if we have a tag (old name) + uses: whoan/docker-build-with-cache-action@v4 + if: github.event_name == 'release' + with: + image_name: ${{ env.OLD_IMAGE_NAME }} + image_tag: ${{ env.RELEASE }} + username: gadockersvc + password: "${{ secrets.DockerPassword }}" + build_extra_args: "--build-arg=ENVIRONMENT=deployment" + - name: Notify Slack for Failures uses: rtCamp/action-slack-notify@v2.0.0 if: failure()