22 lines
618 B
YAML
22 lines
618 B
YAML
name: Buildah Test
|
|
on: [push]
|
|
|
|
jobs:
|
|
test-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Buildah Test
|
|
run: |
|
|
docker run -i --rm \
|
|
--cap-add=SYS_ADMIN \
|
|
--security-opt seccomp=unconfined \
|
|
--security-opt label=disable \
|
|
--tmpfs /var/lib/containers \
|
|
quay.io/buildah/stable:latest \
|
|
buildah --storage-driver=vfs --isolation=chroot bud \
|
|
-t test-image:latest \
|
|
-f - . <<-EOF
|
|
FROM alpine:latest
|
|
RUN echo 'Success!' > /hello.txt
|
|
CMD cat /hello.txt
|
|
EOF |