Update build.yml

This commit is contained in:
Jorge O. Castro
2022-12-16 17:08:34 -05:00
committed by GitHub
parent b54f4dd86d
commit b35a5db3a0

View File

@@ -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.