Skip to content
Snippets Groups Projects
Commit 6d15e186 authored by Jakob Probst's avatar Jakob Probst
Browse files

wip: use buildah to build image

parent 47363c37
No related branches found
No related tags found
No related merge requests found
Pipeline #265086 failed
...@@ -21,15 +21,15 @@ build-container-image: ...@@ -21,15 +21,15 @@ build-container-image:
interruptible: true interruptible: true
rules: rules:
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
tags: image: quay.io/buildah/stable:v1
- shell variables:
STORAGE_DRIVER: vfs
BUILDAH_ISOLATION: chroot
before_script: before_script:
- REGISTRY_AUTH_FILE="$(mktemp)" - buildah login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- export REGISTRY_AUTH_FILE
- printf '{"auths":{"%s":{"auth":"%s"}}}' "$CI_REGISTRY" "$(printf '%s:%s' "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64)" >"$REGISTRY_AUTH_FILE"
script: script:
- podman build -f "$CI_PROJECT_DIR/bootc/Containerfile" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA" "$CI_PROJECT_DIR" - buildah build -f "$CI_PROJECT_DIR/bootc/Containerfile" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA" "$CI_PROJECT_DIR"
- podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA" - buildah push "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA"
needs: [ ] needs: [ ]
tag-container-image: tag-container-image:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment