From a8bbf7ae92961f0dd94c670a80c3601c1325eb44 Mon Sep 17 00:00:00 2001 From: Michele Degges Date: Thu, 19 May 2022 22:53:06 -0700 Subject: [PATCH] [CI-only] Build and publish dev dockerhub images (#11790) --- .github/workflows/build.yml | 3 +++ .release/ci.hcl | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9def7c999..daec59b53 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -256,3 +256,6 @@ jobs: public.ecr.aws/hashicorp/${{ env.REPO_NAME }}:light public.ecr.aws/hashicorp/${{ env.REPO_NAME }}:light-${{ env.version }} public.ecr.aws/hashicorp/${{ env.REPO_NAME }}:${{ env.version }} + dev_tags: | + docker.io/hashicorppreview/${{ env.REPO_NAME }}:${{ env.version }} + docker.io/hashicorppreview/${{ env.REPO_NAME }}:${{ env.version }}-${{ github.sha }} diff --git a/.release/ci.hcl b/.release/ci.hcl index aaa442bfc..d1bb95f99 100644 --- a/.release/ci.hcl +++ b/.release/ci.hcl @@ -161,6 +161,20 @@ event "verify" { } } +event "promote-dev-docker" { + depends = ["verify"] + action "promote-dev-docker" { + organization = "hashicorp" + repository = "crt-workflows-common" + workflow = "promote-dev-docker" + depends = ["verify"] + } + + notification { + on = "fail" + } +} + ## These are promotion and post-publish events ## they should be added to the end of the file after the verify event stanza.