changed build file to accept containerfiles
This commit is contained in:
parent
ccd0be99ba
commit
8e846870b4
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
- name: Get Dockerfile image name
|
- name: Get Dockerfile image name
|
||||||
id: get_image_name
|
id: get_image_name
|
||||||
run: |
|
run: |
|
||||||
IMAGE_NAME=$(grep -Po '(?<=name=")[^"]*' Dockerfile)
|
IMAGE_NAME=$(grep -Po '(?<=name=")[^"]*' Containerfile)
|
||||||
echo "::set-output name=image_name::$IMAGE_NAME"
|
echo "::set-output name=image_name::$IMAGE_NAME"
|
||||||
|
|
||||||
- name: Login to container registry
|
- name: Login to container registry
|
||||||
@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Check for Dockerfile changes
|
- name: Check for Dockerfile changes
|
||||||
id: dockerfile_changed
|
id: dockerfile_changed
|
||||||
run: |
|
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"
|
echo "::set-output name=changed::true"
|
||||||
else
|
else
|
||||||
echo "::set-output name=changed::false"
|
echo "::set-output name=changed::false"
|
||||||
|
Loading…
Reference in New Issue
Block a user