From 68e72fd0db66370d2db1e0bc215aa7a4418a8ad6 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 a01c499c6..bfcb4121e 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 d762aa3e2..e422a9ce2 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.