Replace input dockerfiles with containerfiles (#69)

* Replace input dockerfiles with containerfiles

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
Divyanshu Agrawal 2021-09-15 00:33:38 +05:30 committed by GitHub
parent ab006ef445
commit f9dfea0413
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 106 additions and 76 deletions

View file

@ -1,7 +1,7 @@
# This workflow will perform a test whenever there
# is some change in code done to ensure that the changes
# are not buggy and we are getting the desired output.
name: Build from dockerfile
name: Build from containerfile
on:
push:
pull_request:
@ -36,7 +36,7 @@ jobs:
- name: Create Dockerfile
run: |
cat > Dockerfile<<EOF
cat > Containerfile<<EOF
FROM busybox
RUN echo "hello world"
EOF
@ -49,8 +49,8 @@ jobs:
image: ${{ env.IMAGE_NAME }}
layers: false
tags: 'latest ${{ github.sha }}'
dockerfiles: |
./Dockerfile
containerfiles: |
./Containerfile
extra-args: |
--pull

View file

@ -38,9 +38,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Create Dockerfile
- name: Create Containerfile
run: |
cat > Dockerfile<<EOF
cat > Containerfile<<EOF
ARG ARCH
FROM docker.io/\${ARCH}/alpine:3.14
@ -58,8 +58,8 @@ jobs:
tags: ${{ env.IMAGE_TAG }}
arch: ${{ matrix.arch }}
build-args: ARCH=${{ matrix.arch }}
dockerfiles: |
./Dockerfile
containerfiles: |
./Containerfile
- name: Echo Outputs
run: |