From f79daa440871d70dac8516a5e43c53f54574c795 Mon Sep 17 00:00:00 2001 From: Thomas Montague Date: Mon, 30 Oct 2023 13:53:13 -0600 Subject: [PATCH 1/2] Use recommended Github reference name for image tag. https://github.com/metal-toolbox/container-push/blob/07cae2e438d773ff489f8223ecf492f142797859/.github/workflows/container-push.yml#L10-L18 --- .github/workflows/k8s-content.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/k8s-content.yaml b/.github/workflows/k8s-content.yaml index a7d7b083815..d19e2335b39 100644 --- a/.github/workflows/k8s-content.yaml +++ b/.github/workflows/k8s-content.yaml @@ -14,7 +14,8 @@ jobs: uses: metal-toolbox/container-push/.github/workflows/container-push.yml@main with: name: k8scontent - tag: latest + tag: ${GITHUB_REF_NAME} + latest: true registry_org: complianceascode dockerfile_path: ./Dockerfiles/ocp4_content licenses: BSD From af429e230849828a836c3a2eb086f0d767cc86f8 Mon Sep 17 00:00:00 2001 From: Thomas Montague Date: Mon, 30 Oct 2023 14:02:49 -0600 Subject: [PATCH 2/2] Use GITHUB_SHA instead Turns out [GITHUB_REF_NAME](https://docs.github.com/en/actions/learn-github-actions/variables) will match the branch name instead of a git describe value. --- .github/workflows/k8s-content.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/k8s-content.yaml b/.github/workflows/k8s-content.yaml index d19e2335b39..13322675f48 100644 --- a/.github/workflows/k8s-content.yaml +++ b/.github/workflows/k8s-content.yaml @@ -14,7 +14,7 @@ jobs: uses: metal-toolbox/container-push/.github/workflows/container-push.yml@main with: name: k8scontent - tag: ${GITHUB_REF_NAME} + tag: ${GITHUB_SHA} latest: true registry_org: complianceascode dockerfile_path: ./Dockerfiles/ocp4_content