From 4e52be2d352097497d513d2af989399bd59d13c7 Mon Sep 17 00:00:00 2001 From: quobix Date: Wed, 2 Oct 2024 11:23:38 -0400 Subject: [PATCH] upgraded build to allow tags for docker image --- .github/workflows/build.yaml | 5 ++++- .github/workflows/publish.yaml | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7a42faff..d729947a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,7 +20,10 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 + fetch-depth: 50 + fetch-tags: true + show-progress: true - name: Check go mod tidy is up to date run: go mod tidy && git diff --exit-code diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 51db3ad2..e6a5ac87 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -36,7 +36,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + fetch-depth: 50 + fetch-tags: true + show-progress: true - name: Set version id: vars @@ -77,7 +80,10 @@ jobs: contents: read steps: - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 + fetch-depth: 50 + fetch-tags: true + show-progress: true - name: Log in to Docker Hub uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9