From 93dd89297b51d4480fbdd1aca5b6341a33fe3137 Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Sat, 28 Sep 2024 12:19:33 -0400 Subject: [PATCH] fix: Change github actions to include tag creation Signed-off-by: Diwank Singh Tomer --- .../workflows/{dev-push-to-hub.yml => bake-push-to-hub.yml} | 6 ++++-- .../{main-push-to-hub.yml => latest-push-to-hub.yml} | 0 2 files changed, 4 insertions(+), 2 deletions(-) rename .github/workflows/{dev-push-to-hub.yml => bake-push-to-hub.yml} (91%) rename .github/workflows/{main-push-to-hub.yml => latest-push-to-hub.yml} (100%) diff --git a/.github/workflows/dev-push-to-hub.yml b/.github/workflows/bake-push-to-hub.yml similarity index 91% rename from .github/workflows/dev-push-to-hub.yml rename to .github/workflows/bake-push-to-hub.yml index ed78c9dc7..eb6dd9168 100644 --- a/.github/workflows/dev-push-to-hub.yml +++ b/.github/workflows/bake-push-to-hub.yml @@ -5,6 +5,8 @@ on: push: branches: - "dev" + tags: + - "v*" jobs: Bake-Push-Images: @@ -33,9 +35,9 @@ jobs: *.cache-from=type=gha *.cache-to=type=gha,mode=max env: - TAG: dev + TAG: ${{ github.ref_name }} GIT_SHA: ${{ github.sha }} concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/dev' }} + cancel-in-progress: true diff --git a/.github/workflows/main-push-to-hub.yml b/.github/workflows/latest-push-to-hub.yml similarity index 100% rename from .github/workflows/main-push-to-hub.yml rename to .github/workflows/latest-push-to-hub.yml