From b4ea16dd834d2d2f0264166966c51f6c070b4973 Mon Sep 17 00:00:00 2001 From: Michele Degges Date: Tue, 17 May 2022 12:23:03 -0700 Subject: [PATCH] [CI-only] Build and publish dev dockerhub images (#13084) --- .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 a01c499c6d..bfcb4121e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -251,3 +251,6 @@ jobs: tags: | docker.io/hashicorp/${{env.repo}}:${{env.version}} public.ecr.aws/hashicorp/${{env.repo}}:${{env.version}} + dev_tags: | + docker.io/hashicorppreview/${{ env.repo }}:${{ env.version }}-dev + docker.io/hashicorppreview/${{ env.repo }}:${{ env.version }}-${{ github.sha }} diff --git a/.release/ci.hcl b/.release/ci.hcl index d762aa3e21..e422a9ce29 100644 --- a/.release/ci.hcl +++ b/.release/ci.hcl @@ -164,6 +164,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.