mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
review builds
This commit is contained in:
parent
26c7e17e03
commit
4df932af75
@ -12,7 +12,8 @@ dev-watchdog:
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- make watchdog-nopush
|
||||
- cd watchdog
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
@ -22,7 +23,8 @@ watchdog:
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- make watchdog
|
||||
- cd watchdog
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
@ -32,7 +34,8 @@ dev-unifi:
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- make unifi-nopush
|
||||
- cd unifi
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
@ -42,27 +45,8 @@ unifi:
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- make unifi
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
|
||||
dev-mc:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- make mc-nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
|
||||
mc:
|
||||
stage: build
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- make mc
|
||||
- cd unifi
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
@ -72,7 +56,8 @@ dev-keycloak:
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- make keycloak-nopush
|
||||
- cd keycloak
|
||||
- make nopush
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||
@ -82,7 +67,8 @@ keycloak:
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- make keycloak
|
||||
- cd keycloak
|
||||
- make push
|
||||
only:
|
||||
variables:
|
||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||
|
7
Makefile
7
Makefile
@ -1,7 +0,0 @@
|
||||
.DEFAULT: all
|
||||
.PHONY: mc keycloak pgadmin4 unifi watchdog
|
||||
|
||||
all: mc keycloak pgadmin4 unifi
|
||||
|
||||
include */Makefile
|
||||
|
@ -1 +0,0 @@
|
||||
DEBIAN_VERSION=stable-20200607-slim
|
@ -2,12 +2,16 @@ FROM debian:buster-20200803-slim
|
||||
ADD https://curl.haxx.se/ca/cacert.pem /etc/ssl/certs/cacert.pem
|
||||
ENV CURL_CA_BUNDLE=/etc/ssl/certs/cacert.pem
|
||||
|
||||
ARG KEYCLOAK_VERSION
|
||||
ARG VERSION
|
||||
ENV KEYCLOAK_VERSION $KEYCLOAK_VERSION
|
||||
ENV JDBC_POSTGRES_VERSION 42.2.14
|
||||
# https://jdbc.postgresql.org/download.html
|
||||
ENV JDBC_POSTGRES_VERSION 42.2.16
|
||||
# https://dev.mysql.com/downloads/connector/j/
|
||||
ENV JDBC_MYSQL_VERSION 8.0.21
|
||||
# https://github.com/mariadb-corporation/mariadb-connector-j/releases
|
||||
ENV JDBC_MARIADB_VERSION 2.6.2
|
||||
ENV JDBC_MSSQL_VERSION 8.4.0.jre11
|
||||
# https://docs.microsoft.com/en-us/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server-support-matrix?view=sql-server-ver15
|
||||
ENV JDBC_MSSQL_VERSION 8.4.1.jre11
|
||||
|
||||
ENV LAUNCH_JBOSS_IN_BACKGROUND 1
|
||||
ENV PROXY_ADDRESS_FORWARDING false
|
||||
|
@ -1,13 +1,17 @@
|
||||
include keycloak/keycloak.version
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
keycloak-nopush:
|
||||
IMAGE=keycloak
|
||||
|
||||
nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg KEYCLOAK_VERSION=$(KEYCLOAK_VERSION) \
|
||||
--tag alemairebe/keycloak:$(KEYCLOAK_VERSION) keycloak
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
keycloak:
|
||||
push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
|
||||
--build-arg KEYCLOAK_VERSION=$(KEYCLOAK_VERSION) \
|
||||
--cache-from=type=registry,ref=alemairebe/keycloak \
|
||||
--cache-to=type=registry,ref=alemairebe/keycloak \
|
||||
--tag alemairebe/keycloak:$(KEYCLOAK_VERSION) keycloak
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--cache-from=type=registry,ref=${namespace}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${namespace}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
KEYCLOAK_VERSION=11.0.0
|
1
keycloak/version
Normal file
1
keycloak/version
Normal file
@ -0,0 +1 @@
|
||||
KEYCLOAK_VERSION=11.0.2
|
@ -1,9 +0,0 @@
|
||||
FROM debian:stable-20200720-slim
|
||||
ARG TARGETARCH
|
||||
ARG MC_VERSION
|
||||
ADD https://dl.min.io/client/mc/release/linux-${TARGETARCH}/archive/mc.${MC_VERSION} /root/
|
||||
RUN mv /root/mc.${MC_VERSION} /usr/bin/mc && chmod +x /usr/bin/mc
|
||||
|
||||
FROM scratch
|
||||
COPY --from=0 /usr/bin/mc /mc
|
||||
ENTRYPOINT ["/mc"]
|
13
mc/Makefile
13
mc/Makefile
@ -1,13 +0,0 @@
|
||||
include mc/mc.version
|
||||
|
||||
mc-nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg MC_VERSION=$(MC_VERSION) \
|
||||
--tag alemairebe/mc:$(MC_VERSION) mc
|
||||
|
||||
mc:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
|
||||
--build-arg MC_VERSION=$(MC_VERSION) \
|
||||
--cache-from=type=registry,ref=alemairebe/mc \
|
||||
--cache-to=type=registry,ref=alemairebe/mc \
|
||||
--tag alemairebe/mc:$(MC_VERSION) mc
|
@ -1 +0,0 @@
|
||||
MC_VERSION=RELEASE.2020-07-17T02-52-20Z
|
@ -1,15 +1,18 @@
|
||||
include unifi/.version
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
unifi-nopush:
|
||||
IMAGE=unifi
|
||||
|
||||
nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--build-arg UNIFI_VERSION=$(UNIFI_VERSION) \
|
||||
--tag alemairebe/unifi:$(VERSION) unifi
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
unifi:
|
||||
push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64 --push \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--build-arg UNIFI_VERSION=$(UNIFI_VERSION) \
|
||||
--cache-from=type=registry,ref=alemairebe/unifi:buildx \
|
||||
--cache-to=type=registry,ref=alemairebe/unifi:buildx \
|
||||
--tag alemairebe/unifi:$(VERSION) unifi
|
||||
--cache-from=type=registry,ref=${namespace}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${namespace}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
|
||||
|
@ -1,13 +1,18 @@
|
||||
include watchdog/.version
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
watchdog-nopush:
|
||||
IMAGE=watchdog
|
||||
|
||||
nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--tag alemairebe/watchdog:$(VERSION) watchdog
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
watchdog:
|
||||
|
||||
push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--cache-from=type=registry,ref=alemairebe/watchdog \
|
||||
--cache-to=type=registry,ref=alemairebe/watchdog \
|
||||
--tag alemairebe/watchdog:$(VERSION) watchdog
|
||||
--cache-from=type=registry,ref=${namespace}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${namespace}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user