Skip to content

Commit

Permalink
gitlab-ci to create container image for usage in gitlab-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaimi committed May 25, 2023
1 parent 0c08691 commit b6bc6ea
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
image-build:
image:
name: quay.io/buildah/stable:latest
stage: build
before_script:
- 'echo "$CI_REGISTRY_PASSWORD" | buildah login --username "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY'
script:
- buildah bud
-f "Containerfile"
-t "$CI_REGISTRY_IMAGE/codeclimate-openapi:latest"
--layers
--cache-from=$CI_REGISTRY_IMAGE/codeclimate-openapi/cache
--cache-to=$CI_REGISTRY_IMAGE/codeclimate-openapi/cache
.
- buildah push "$CI_REGISTRY_IMAGE/codeclimate-openapi:latest"

0 comments on commit b6bc6ea

Please sign in to comment.