mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-07 17:31:35 +00:00
Replace input dockerfiles with containerfiles (#69)
* Replace input dockerfiles with containerfiles Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
ab006ef445
commit
f9dfea0413
10 changed files with 106 additions and 76 deletions
|
@ -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
|
||||
|
8
.github/workflows/multiarch.yml
vendored
8
.github/workflows/multiarch.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue