Add commands for building image
This commit is contained in:
parent
255a163408
commit
c8d1defada
1 changed files with 15 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
stages:
|
||||
- package
|
||||
- compile
|
||||
- test
|
||||
- build
|
||||
|
@ -11,6 +12,20 @@ cache:
|
|||
- .m2/repository/
|
||||
- "**/target/"
|
||||
|
||||
container:
|
||||
stage: package
|
||||
image: $CI_REGISTRY/ict/images/alpine/ci:latest
|
||||
variables:
|
||||
BUILDAH_ISOLATION: chroot
|
||||
IMAGE_TAG: $CI_REGISTRY:$CI_COMMIT_REF_SLUG
|
||||
before_script:
|
||||
- apk add buildah fuse-overlayfs
|
||||
- buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
- buildah info
|
||||
script:
|
||||
- buildah build --tag $IMAGE_TAG -f Dockerfile
|
||||
- buildah push $IMAGE_TAG
|
||||
|
||||
compile:
|
||||
stage: compile
|
||||
image: maven:3.8.6-openjdk-18
|
||||
|
|
Loading…
Reference in a new issue