test cicd
This commit is contained in:
parent
c5b5e383aa
commit
0b8f2c7557
@ -31,8 +31,7 @@ docker-build:
|
|||||||
script:
|
script:
|
||||||
- cd gitlab-app
|
- cd gitlab-app
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx build --push --platform linux/amd64 -f Dockerfile-linux -t "upagge/test:latest" .
|
- docker buildx build --push --platform linux/amd64,linux/arm64/v8 -f Dockerfile-linux -t "upagge/test:latest" .
|
||||||
- docker buildx build --push --platform linux/arm64/v8 -f Dockerfile-linux2 -t "upagge/test:latest" .
|
|
||||||
# - docker push "$CI_REGISTRY_IMAGE:latest"
|
# - docker push "$CI_REGISTRY_IMAGE:latest"
|
||||||
# - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
# - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
FROM openjdk:17-alpine3.14
|
FROM openjdk:17.0.2-jdk-slim-buster
|
||||||
MAINTAINER uPagge <me@upagge.ru>
|
MAINTAINER uPagge <me@upagge.ru>
|
||||||
RUN apk add --no-cache bash && \
|
RUN addgroup gitlabbot --disabled-password && \
|
||||||
addgroup -S gitlabbot && \
|
adduser gitlabbot --ingroup gitlabbot && \
|
||||||
adduser -S gitlabbot -G gitlabbot && \
|
|
||||||
mkdir -p /bot && \
|
mkdir -p /bot && \
|
||||||
chown -R gitlabbot:gitlabbot /bot
|
chown -R gitlabbot:gitlabbot /bot
|
||||||
WORKDIR /bot
|
WORKDIR /bot
|
@ -1,24 +0,0 @@
|
|||||||
FROM openjdk:17-jdk-oraclelinux8
|
|
||||||
MAINTAINER uPagge <me@upagge.ru>
|
|
||||||
RUN apk add --no-cache bash && \
|
|
||||||
addgroup -S gitlabbot && \
|
|
||||||
adduser -S gitlabbot -G gitlabbot && \
|
|
||||||
mkdir -p /bot && \
|
|
||||||
chown -R gitlabbot:gitlabbot /bot
|
|
||||||
WORKDIR /bot
|
|
||||||
USER gitlabbot:gitlabbot
|
|
||||||
COPY target/gitlab-notification.jar app.jar
|
|
||||||
ENV TELEGRAM_PERSON_ID=TELEGRAM_PERSON_ID DATASOURCE_URL=DATASOURCE_URL \
|
|
||||||
DATASOURCE_PASSWORD=DATASOURCE_PASSWORD DATASOURCE_USERNAME=DATASOURCE_USERNAME \
|
|
||||||
GITLAB_PERSONAL_TOKEN=GITLAB_PERSONAL_TOKEN TELEGRAM_BOT_TOKEN=TELEGRAM_BOT_TOKEN \
|
|
||||||
TELEGRAM_BOT_USERNAME=TELEGRAM_BOT_USERNAME GITLAB_URL=GITLAB_URL GITLAB_REPLACE_URL=GITLAB_REPLACE_URL
|
|
||||||
ENTRYPOINT java -DTELEGRAM_BOT_USERNAME=${TELEGRAM_BOT_USERNAME} \
|
|
||||||
-DTELEGRAM_BOT_TOKEN=$TELEGRAM_BOT_TOKEN \
|
|
||||||
-DTELEGRAM_PERSON_ID=$TELEGRAM_PERSON_ID \
|
|
||||||
-DDATASOURCE_URL=$DATASOURCE_URL \
|
|
||||||
-DDATASOURCE_PASSWORD=$DATASOURCE_PASSWORD \
|
|
||||||
-DDATASOURCE_USERNAME=$DATASOURCE_USERNAME \
|
|
||||||
-DGITLAB_PERSONAL_TOKEN=$GITLAB_PERSONAL_TOKEN \
|
|
||||||
-DGITLAB_URL=$GITLAB_URL \
|
|
||||||
-DGITLAB_REPLACE_URL=$GITLAB_REPLACE_URL \
|
|
||||||
-jar app.jar
|
|
@ -1,20 +0,0 @@
|
|||||||
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
|
|
||||||
USER gitlabbot:gitlabbot
|
|
||||||
COPY target/gitlab-notification.jar app.jar
|
|
||||||
ENV TELEGRAM_PERSON_ID=TELEGRAM_PERSON_ID DATASOURCE_URL=DATASOURCE_URL \
|
|
||||||
DATASOURCE_PASSWORD=DATASOURCE_PASSWORD DATASOURCE_USERNAME=DATASOURCE_USERNAME \
|
|
||||||
GITLAB_PERSONAL_TOKEN=GITLAB_PERSONAL_TOKEN TELEGRAM_BOT_TOKEN=TELEGRAM_BOT_TOKEN \
|
|
||||||
TELEGRAM_BOT_USERNAME=TELEGRAM_BOT_USERNAME GITLAB_URL=GITLAB_URL GITLAB_REPLACE_URL=GITLAB_REPLACE_URL
|
|
||||||
ENTRYPOINT java -DTELEGRAM_BOT_USERNAME=${TELEGRAM_BOT_USERNAME} \
|
|
||||||
-DTELEGRAM_BOT_TOKEN=$TELEGRAM_BOT_TOKEN \
|
|
||||||
-DTELEGRAM_PERSON_ID=$TELEGRAM_PERSON_ID \
|
|
||||||
-DDATASOURCE_URL=$DATASOURCE_URL \
|
|
||||||
-DDATASOURCE_PASSWORD=$DATASOURCE_PASSWORD \
|
|
||||||
-DDATASOURCE_USERNAME=$DATASOURCE_USERNAME \
|
|
||||||
-DGITLAB_PERSONAL_TOKEN=$GITLAB_PERSONAL_TOKEN \
|
|
||||||
-DGITLAB_URL=$GITLAB_URL \
|
|
||||||
-DGITLAB_REPLACE_URL=$GITLAB_REPLACE_URL \
|
|
||||||
-jar app.jar
|
|
Loading…
Reference in New Issue
Block a user