From d202795a86dd73f30b2f85e85b0c0a55c80d6907 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Wed, 23 Mar 2022 07:01:56 -0400 Subject: [PATCH] workflows: include Git tag in container --version Fetch Git tags so the output of --version for the ignition-validate container isn't just a commit hash. --- .github/workflows/container.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index ed90e3ed2..f2aa6915d 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -21,6 +21,9 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v2 + with: + # fetch tags so the compiled-in version number is useful + fetch-depth: 0 - name: Build and push container uses: coreos/actions-lib/build-container@main with: