-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#136 Keep building old image name for compatibility
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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/[email protected] | ||
if: failure() | ||
|