Skip to content

Commit

Permalink
#136 Keep building old image name for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Tisham Dhar authored and whatnick committed Jun 13, 2020
1 parent 9a3f8be commit 3977fe9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- created

env:
OLD_IMAGE_NAME: opendatacube/dashboard
IMAGE_NAME: opendatacube/explorer

jobs:
Expand All @@ -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/[email protected]
with:
Expand Down Expand Up @@ -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/[email protected]
if: failure()
Expand Down

0 comments on commit 3977fe9

Please sign in to comment.