Skip to content
Snippets Groups Projects
Unverified Commit d9e8a415 authored by thelooter's avatar thelooter
Browse files

refactor(docker-build): Build Image with buildah

parent b67300c0
Branches
Tags
No related merge requests found
...@@ -13,14 +13,12 @@ include: ...@@ -13,14 +13,12 @@ include:
stages: [build, test, release] stages: [build, test, release]
build-image: build-image:
image: docker:24.0.2 image: quay.io/buildah/stable
stage: build stage: build
services:
- docker:24.0.2-dind
script: script:
- docker build --tag $CI_REGISTRY_IMAGE/test-image --file Dockerfile . - buildah bud --tag $CI_REGISTRY_IMAGE/test-image --file Dockerfile .
- docker login --username gitlab-ci-token --password $CI_JOB_TOKEN $CI_REGISTRY - buildah login --username gitlab-ci-token --password $CI_JOB_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE/test-image - buildah push $CI_REGISTRY_IMAGE/test-image
rules: rules:
# add to merge request but not branch pipeline for merge request. # add to merge request but not branch pipeline for merge request.
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment