From c8ed2914e6c97fda64503ff06bad15a537a5e402 Mon Sep 17 00:00:00 2001 From: duoduo song Date: Wed, 28 Feb 2024 19:45:01 +0800 Subject: [PATCH] add build information when building docker image --- .github/workflows/docker.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3737040..e901b34 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,6 +13,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Set Commit + run: echo "$(git rev-parse --short HEAD)" > constants/git_commit.txt + + - name: Set Version + run: echo "$GITHUB_REF_NAME" > constants/version.txt + - name: Set up QEMU uses: docker/setup-qemu-action@v3