repo
This commit is contained in:
1 parent
962b425796
commit
1d562bd653
10 files changed
+3
-69
No files matched your search
+1
-16
@@ -1,4 +1,4 @@
|
|||||||
image: quay.io/buildah/stable@sha256:7950cabdb65648ef74496c80f2ade316e76f5a19a719dc5b1755470ed50d084f
|
image: quay.io/buildah/stable:latest
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
STORAGE_DRIVER: vfs
|
STORAGE_DRIVER: vfs
|
||||||
@@ -7,23 +7,8 @@ variables:
|
|||||||
BUILDAH_NO_PROMPT: "1"
|
BUILDAH_NO_PROMPT: "1"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- base
|
|
||||||
- build
|
- build
|
||||||
|
|
||||||
build_base:
|
|
||||||
stage: base
|
|
||||||
script:
|
|
||||||
- buildah bud --storage-driver=${STORAGE_DRIVER} -t ${FQ_IMAGE_NAME}:base -f Dockerfile.base .
|
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
|
|
||||||
- buildah push ${FQ_IMAGE_NAME}:base
|
|
||||||
rules:
|
|
||||||
- changes:
|
|
||||||
- Dockerfile.base
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
||||||
- when: never
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- "tools/coder-cli/.gitlab-ci.yml"
|
|
||||||
- "tools/terraform-shell/.gitlab-ci.yml"
|
|
||||||
- "java/.gitlab-ci.yml"
|
- "java/.gitlab-ci.yml"
|
||||||
- "php/.gitlab-ci.yml"
|
- "php/.gitlab-ci.yml"
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
FROM docker.io/codercom/enterprise-base:ubuntu@sha256:05cdf15023f7c17713f1a6aec984e693484d46858bad11324963634aa91c2cdb
|
|
||||||
|
|
||||||
USER root
|
|
||||||
|
|
||||||
# Shared base utilities only
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get install -y --no-install-recommends \
|
|
||||||
curl \
|
|
||||||
unzip \
|
|
||||||
git \
|
|
||||||
nano \
|
|
||||||
ca-certificates \
|
|
||||||
software-properties-common \
|
|
||||||
lsb-release \
|
|
||||||
gnupg \
|
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
USER coder
|
|
||||||
WORKDIR /home/coder
|
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
- java/**
|
- java/**
|
||||||
- Dockerfile.base
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
||||||
|
|
||||||
build_java21:
|
build_java21:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM registry.bobert.me/anthorob/coder-images:base@sha256:bf0b3aa1de0b4448e2f3fc36c7e68fab349aaab40b04416d8e6e1bf26faa6987
|
FROM registry.bobert.me/anthorob/coder-base:latest
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
- php/**
|
- php/**
|
||||||
- Dockerfile.base
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
||||||
|
|
||||||
build_php82:
|
build_php82:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM registry.bobert.me/anthorob/coder-images:base@sha256:bf0b3aa1de0b4448e2f3fc36c7e68fab349aaab40b04416d8e6e1bf26faa6987
|
FROM registry.bobert.me/anthorob/coder-base:latest
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
build_cli:
|
|
||||||
stage: base
|
|
||||||
script:
|
|
||||||
- buildah info
|
|
||||||
- buildah bud --storage-driver=${STORAGE_DRIVER} -t ${FQ_IMAGE_NAME}:coder-cli -f tools/coder-cli/Dockerfile .
|
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
|
|
||||||
- buildah push ${FQ_IMAGE_NAME}:coder-cli
|
|
||||||
rules:
|
|
||||||
- changes:
|
|
||||||
- tools/coder-cli/**
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
FROM alpine:latest@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412
|
|
||||||
|
|
||||||
RUN apk add --no-cache curl sed
|
|
||||||
RUN curl -fsSL https://coder.com/install.sh | sh
|
|
||||||
|
|
||||||
ENTRYPOINT []
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
build_shell:
|
|
||||||
stage: base
|
|
||||||
script:
|
|
||||||
- buildah info
|
|
||||||
- buildah bud --storage-driver=${STORAGE_DRIVER} -t ${FQ_IMAGE_NAME}:terraform-shell -f tools/terraform-shell/Dockerfile .
|
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
|
|
||||||
- buildah push ${FQ_IMAGE_NAME}:terraform-shell
|
|
||||||
rules:
|
|
||||||
- changes:
|
|
||||||
- tools/terraform-shell/**
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
FROM docker.io/hashicorp/terraform:1.13.5@sha256:6bbb82d575aa7bd4f0a2c6e3a0838ab9590426c08a71d7a2783643f01004d356
|
|
||||||
ENTRYPOINT []
|
|
||||||
Reference in new issue
Block a user