test cicd

This commit is contained in:
Struchkov Mark 2022-01-26 17:51:48 +03:00
parent a13de9e73c
commit 2316be13eb
2 changed files with 2 additions and 6 deletions

View File

@ -2,10 +2,6 @@ stages:
- build
- deploy
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
build:
image: maven:3.8.4-openjdk-17
stage: build
@ -35,7 +31,8 @@ docker-build:
script:
- cd gitlab-app
- docker buildx create --use
- docker buildx build --push --no-cache --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -f Dockerfile-linux -t "upagge/test:latest" .
- docker buildx build --platform linux/amd64 -f Dockerfile-linux -t "upagge/test:latest" .
- docker buildx build --platform linux/arm/v7,linux/arm64/v8, -f Docker-mav -t "upagge/test:latest" .
# - docker push "$CI_REGISTRY_IMAGE:latest"
# - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"

View File

@ -1,5 +1,4 @@
FROM upagge/openjdk-mac-slim:17.0.2
FROM upagge/openjdk-mac-slim:17.0.2
MAINTAINER uPagge <me@upagge.ru>
RUN mkdir -p /bot && adduser gitlabbot --disabled-password && chown -R gitlabbot:gitlabbot /bot
WORKDIR /bot