changed build file to accept containerfiles

This commit is contained in:
Wyatt J. Miller 2024-05-05 20:32:40 -04:00
parent ccd0be99ba
commit 8e846870b4

View File

@ -17,7 +17,7 @@ jobs:
- name: Get Dockerfile image name
id: get_image_name
run: |
IMAGE_NAME=$(grep -Po '(?<=name=")[^"]*' Dockerfile)
IMAGE_NAME=$(grep -Po '(?<=name=")[^"]*' Containerfile)
echo "::set-output name=image_name::$IMAGE_NAME"
- name: Login to container registry
@ -26,7 +26,7 @@ jobs:
- name: Check for Dockerfile changes
id: dockerfile_changed
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^Dockerfile$'; then
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^Containerfile$'; then
echo "::set-output name=changed::true"
else
echo "::set-output name=changed::false"