aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-05-06 11:20:53 +0200
committerGerd Hoffmann <kraxel@redhat.com>2021-05-06 11:20:53 +0200
commitf5a1ad71d1c711fa3a46124ba027c39b7902f97c (patch)
tree9075c6e19fb7b0b343aa30b9e7e17c8d7c097292
parent8793baf65a96df800e2696bb9fb56c92868de525 (diff)
downloadrpm-package-builder-f5a1ad71d1c711fa3a46124ba027c39b7902f97c.tar.gz
use include
-rw-r--r--.gitlab-ci.yml28
1 files changed, 3 insertions, 25 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c2d6234..705801d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,25 +1,3 @@
-# https://blog.callr.tech/building-docker-images-with-gitlab-ci-best-practices/
-# comments dropped, updated for podman builds
-# this variant builds without caching
-
-image: registry.gitlab.com/kraxel/podman-docker-builder:latest
-
-stages:
- - build
-
-before_script:
- - podman login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
-Build:
- stage: build
- only:
- - branches
- script:
- - >
- podman build
- --build-arg VCS_REF=$CI_COMMIT_SHA
- --build-arg VCS_URL=$CI_PROJECT_URL
- --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH
- .
- - podman push $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH
-
+include:
+ - project: 'kraxel/podman-docker-builder'
+ file: 'gitlab-ci-template-multiarch.yml'