use new s6-rc layout
This commit is contained in:
parent
31a9e580a1
commit
d217375670
@ -1,12 +1,18 @@
|
||||
stages:
|
||||
- build
|
||||
|
||||
variables:
|
||||
IMAGE_NAME: thallian/molly-brown
|
||||
CI_BUILD_ARCHS: "linux/amd64,linux/arm64"
|
||||
CONTAINER_NAME: thallian/molly-brown
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
|
||||
- docker buildx build --platform "$CI_BUILD_ARCHS" --progress plain --pull --tag "$IMAGE_NAME:$CI_COMMIT_SHA" --tag "$IMAGE_NAME:$CI_COMMIT_REF_NAME" --tag "$IMAGE_NAME:latest" --push .
|
||||
stage: build
|
||||
image:
|
||||
name: gcr.io/kaniko-project/executor:debug
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- mkdir -p /kaniko/.docker
|
||||
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
|
||||
- >-
|
||||
/kaniko/executor
|
||||
--context "$CI_PROJECT_DIR"
|
||||
--dockerfile "$CI_PROJECT_DIR/Dockerfile"
|
||||
--destination "$CONTAINER_NAME:$CI_COMMIT_SHA"
|
||||
--destination "$CONTAINER_NAME:$CI_COMMIT_REF_NAME"
|
||||
--destination "$CONTAINER_NAME:latest"
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM golang:1.15.0-alpine3.12 AS builder
|
||||
FROM golang:1.17.7-alpine3.15 AS builder
|
||||
|
||||
ENV GO111MODULE=on
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
/var/gemini/ true molly-brown:molly-brown 0666 0777
|
1
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/dependencies
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/dependencies
Normal file
@ -0,0 +1 @@
|
||||
confd
|
1
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/type
Normal file
@ -0,0 +1 @@
|
||||
longrun
|
Loading…
Reference in New Issue
Block a user