From bd3816fa14433c851f5f670eed6a952fca65deef Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 2 Oct 2023 19:11:09 +0200 Subject: [PATCH] CI: Ensure that github containers match the official binaries The binaries accidentally included VCS information whereas binaries built from the release tarball do not. For consistency remove the .git directory before building the container on Github. --- .github/workflows/docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dba696d44..f483f5760 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -47,6 +47,13 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 + - name: Ensure consistent binaries + run: | + echo "removing git directory for consistency with release binaries" + rm -rf .git + # remove VCS information from release builds, keep VCS for nightly builds on master + if: github.ref != 'refs/heads/master' + - name: Build and push Docker image uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: