Skip to content
Snippets Groups Projects
Commit 2d04592e authored by Thomas Schneider's avatar Thomas Schneider
Browse files

ci: Build container image

parent 9a4ee82c
No related branches found
No related tags found
No related merge requests found
...@@ -74,3 +74,25 @@ publish: ...@@ -74,3 +74,25 @@ publish:
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
build-container:
stage: deploy
needs: []
cache: {}
image: quay.io/buildah/stable:v1
before_script:
- >-
buildah
login
-u "$CI_REGISTRY_USER"
-p "$CI_REGISTRY_PASSWORD"
$CI_REGISTRY
script:
- >-
buildah
build
-t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- >-
buildah
push
$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment