Skip to content

Commit

Permalink
group updates to public branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lj020326 committed May 23, 2024
1 parent f52938c commit 0afee5d
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
with:
context: ${{ matrix.cicd-build-tools.context }}
file: ${{ matrix.cicd-build-tools.dockerfile }}
build-args: IMAGE_REGISTRY=${{ github.repository_owner }},INTERNAL_IMAGE_BUILD=NO
# build-args: IMAGE_REGISTRY=${{ github.repository_owner }},INTERNAL_IMAGE_BUILD=NO
push: true
tags: ${{ matrix.cicd-build-tools.tags }}
labels: |
Expand All @@ -87,7 +87,7 @@ jobs:
with:
context: ${{ matrix.jenkins-docker-cicd-agent.context }}
file: ${{ matrix.jenkins-docker-cicd-agent.dockerfile }}
build-args: IMAGE_REGISTRY=${{ github.repository_owner }}
# build-args: IMAGE_REGISTRY=${{ github.repository_owner }}
push: true
tags: ${{ matrix.jenkins-docker-cicd-agent.tags }}
labels: |
Expand All @@ -100,7 +100,7 @@ jobs:
with:
context: ${{ matrix.cicd-docker-in-docker.context }}
file: ${{ matrix.cicd-docker-in-docker.dockerfile }}
build-args: IMAGE_REGISTRY=${{ github.repository_owner }}
# build-args: IMAGE_REGISTRY=${{ github.repository_owner }}
push: true
tags: ${{ matrix.cicd-docker-in-docker.tags }}
labels: |
Expand All @@ -113,7 +113,7 @@ jobs:
with:
context: ${{ matrix.jenkins-dind-agent.context }}
file: ${{ matrix.jenkins-dind-agent.dockerfile }}
build-args: IMAGE_REGISTRY=${{ github.repository_owner }}
# build-args: IMAGE_REGISTRY=${{ github.repository_owner }}
push: true
tags: ${{ matrix.jenkins-dind-agent.tags }}
labels: |
Expand All @@ -126,7 +126,7 @@ jobs:
with:
context: ${{ matrix.jenkins-swarm-agent.context }}
file: ${{ matrix.jenkins-swarm-agent.dockerfile }}
build-args: IMAGE_REGISTRY=${{ github.repository_owner }}
# build-args: IMAGE_REGISTRY=${{ github.repository_owner }}
push: true
tags: ${{ matrix.jenkins-swarm-agent.tags }}
labels: |
Expand Down
1 change: 1 addition & 0 deletions .jenkins/docker-build-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pipeline:

buildArgs:
IMAGE_REGISTRY: media.johnson.int:5000
BASE_IMAGE_LABEL: lj020326/cicd-build-tools

buildImageList:
- buildImageLabel: "cicd-build-tools"
Expand Down
2 changes: 1 addition & 1 deletion image/cicd-build-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
FROM ubuntu:22.04
LABEL maintainer="Lee Johnson <ljohnson@dettonville.org>"
ARG BUILD_ID=devel
ARG BUILD_DATE="2024-05-01
ARG BUILD_DATE="2024-05-01"
LABEL build_date=$BUILD_DATE
LABEL build=$BUILD_ID

Expand Down
7 changes: 5 additions & 2 deletions image/cicd-docker-in-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ RUN addgroup -g ${gid} ${group} \

# Adding the default user to groups used by Docker engine
# "docker" for avoiding sudo, and "dockremap" if you enable user namespacing
#RUN addgroup docker \
# && addgroup ${user} docker \
# && addgroup ${user} dockremap
RUN addgroup docker \
&& addgroup ${user} docker \
&& addgroup ${user} dockremap
&& adduser ${user} docker \
&& adduser ${user} dockremap

# Custom start script
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
Expand Down
5 changes: 3 additions & 2 deletions image/jenkins-cicd-agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## ref: https://schneide.blog/2019/10/21/using-parameterized-docker-builds/
ARG IMAGE_REGISTRY=lj020326
ARG BASE_IMAGE_LABEL=cicd-build-tools
ARG IMAGE_REGISTRY=docker.io
ARG BASE_IMAGE_LABEL=lj020326/cicd-build-tools
FROM $IMAGE_REGISTRY/$BASE_IMAGE_LABEL
ARG BUILD_ID=devel
ARG BUILD_DATE="2024-05-01"

Expand Down
4 changes: 2 additions & 2 deletions image/jenkins-dind-agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ref: https://schneide.blog/2019/10/21/using-parameterized-docker-builds/
ARG IMAGE_REGISTRY=lj020326
ARG BASE_IMAGE_LABEL=cicd-docker-in-docker
ARG IMAGE_REGISTRY=docker.io
ARG BASE_IMAGE_LABEL=lj020326/cicd-docker-in-docker
ARG BUILD_ID=devel
ARG BUILD_DATE="2024-05-01"

Expand Down
4 changes: 2 additions & 2 deletions image/jenkins-swarm-agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## ref: https://hourperday.wordpress.com/2017/05/17/how-to-cicd-with-chef-cookbooks-and-jenkins-part-three/
## ref: https://schneide.blog/2019/10/21/using-parameterized-docker-builds/
ARG IMAGE_REGISTRY=lj020326
ARG BASE_IMAGE_LABEL=cicd-build-tools
ARG IMAGE_REGISTRY=docker.io
ARG BASE_IMAGE_LABEL=lj020326/cicd-build-tools
ARG BUILD_ID=devel
ARG BUILD_DATE="2024-05-01"

Expand Down

0 comments on commit 0afee5d

Please sign in to comment.