From b35a5db3a0590462075358781ce2c43c3f77b6a2 Mon Sep 17 00:00:00 2001 From: "Jorge O. Castro" Date: Fri, 16 Dec 2022 17:08:34 -0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index abb7878..b4b88f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,8 @@ jobs: - name: Checkout Push to Registry action uses: actions/checkout@v2 - name: set env - run: echo "::set-env name=NOW::$(date +'%Y%m%d')" + run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV + # Build image using Buildah action - name: Build Image id: build_image @@ -35,7 +36,7 @@ jobs: containerfiles: | ./Containerfile image: ${{ env.IMAGE_NAME }} - tags: ${{ env.IMAGE_TAGS }} ${{ env.NOW }} + tags: ${{ env.IMAGE_TAGS }} ${{ env.DATE }} oci: true # Workaround bug where capital letters in your GitHub user name make it impossible to push to GHCR.