Skip to content

Commit b6bc6ea

Browse files
committed
gitlab-ci to create container image for usage in gitlab-ci
See: https://docs.gitlab.com/ee/ci/testing/code_quality.html#required-images Signed-off-by: Matthias Blümel <[email protected]>
1 parent 0c08691 commit b6bc6ea

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.gitlab-ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
image-build:
2+
image:
3+
name: quay.io/buildah/stable:latest
4+
stage: build
5+
before_script:
6+
- 'echo "$CI_REGISTRY_PASSWORD" | buildah login --username "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY'
7+
script:
8+
- buildah bud
9+
-f "Containerfile"
10+
-t "$CI_REGISTRY_IMAGE/codeclimate-openapi:latest"
11+
--layers
12+
--cache-from=$CI_REGISTRY_IMAGE/codeclimate-openapi/cache
13+
--cache-to=$CI_REGISTRY_IMAGE/codeclimate-openapi/cache
14+
.
15+
- buildah push "$CI_REGISTRY_IMAGE/codeclimate-openapi:latest"

0 commit comments

Comments
 (0)