.gitea/workflows/buildah_test.yml hinzugefügt
Buildah Rootless Test / test-build (push) Failing after 0s
Buildah Rootless Test / test-build (push) Failing after 0s
testlauf buildah
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
name: Buildah Rootless Test
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test-build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
# Direkt auf die aktuelle Version gehen
|
||||
image: quay.io/buildah/stable:v1.44
|
||||
|
||||
steps:
|
||||
- name: Code auschecken
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- 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: |
|
||||
echo "Image erfolgreich gebaut! Hier sind die lokalen Images in der Sandbox:"
|
||||
buildah --storage-driver=vfs images
|
||||
Reference in New Issue
Block a user