27 lines
802 B
YAML
27 lines
802 B
YAML
name: Buildah Rootless Test
|
|
on: [push]
|
|
|
|
jobs:
|
|
test-build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: quay.io/buildah/stable:latest
|
|
|
|
steps:
|
|
# HIER: "Code auschecken" wurde gelöscht, da für den Test unfeiner Code reicht
|
|
|
|
- name: Test-Dockerfile erstellen
|
|
run: |
|
|
echo "FROM alpine:latest" > Containerfile
|
|
echo "RUN echo 'Hello from rootless Buildah 1.44!' > /hello.txt" >> Containerfile
|
|
echo "CMD cat /hello.txt" >> Containerfile
|
|
|
|
- name: Image mit Buildah bauen
|
|
run: |
|
|
buildah --storage-driver=vfs --isolation=chroot bud \
|
|
-t lokales-test-image:latest \
|
|
-f Containerfile .
|
|
|
|
- name: Erfolg überprüfen
|
|
run: |
|
|
buildah --storage-driver=vfs images |