This commit is contained in:
anthorob committed 2026-03-18 01:04:59 -04:00
1 parent 4652d60875
commit cc35f45184
7 files changed
+96 -62

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
name: Build Java Images
on:
push:
branches:
- main
schedule:
- cron: "@weekly"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java_version: [21]
steps:
- uses: actions/checkout@v4
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
file: java/Dockerfile.java${{ matrix.java_version }}
push: true
tags: ${{ vars.CI_REGISTRY_IMAGE }}:java${{ matrix.java_version }}
+33
View File
@@ -0,0 +1,33 @@
name: Build PHP Images
on:
push:
branches:
- main
schedule:
- cron: "@weekly"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: [82, 84]
steps:
- uses: actions/checkout@v4
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
file: php/Dockerfile.php${{ matrix.php_version }}
push: true
tags: ${{ vars.CI_REGISTRY_IMAGE }}:php${{ matrix.php_version }}
+30
View File
@@ -0,0 +1,30 @@
name: Build Python Images
on:
push:
branches:
- main
schedule:
- cron: "@weekly"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
file: python/Dockerfile.python3
push: true
tags: ${{ vars.CI_REGISTRY_IMAGE }}:python3
-21
View File
@@ -1,21 +0,0 @@
image: quay.io/buildah/stable:latest
variables:
STORAGE_DRIVER: vfs
BUILDAH_FORMAT: docker
FQ_IMAGE_NAME: "$CI_REGISTRY_IMAGE"
BUILDAH_NO_PROMPT: "1"
workflow:
rules:
- if: '$CI_COMMIT_BRANCH == "main" || $CI_PIPELINE_SOURCE == "schedule"'
when: always
- when: never
stages:
- build
include:
- "java/.gitlab-ci.yml"
- "php/.gitlab-ci.yml"
- "python/.gitlab-ci.yml"
-12
View File
@@ -1,12 +0,0 @@
.default_build_template: &build_template
stage: build
script:
- buildah info
- buildah bud --storage-driver=${STORAGE_DRIVER} --pull -t ${FQ_IMAGE_NAME}:java${JAVA_VERSION} -f java/Dockerfile.java${JAVA_VERSION} .
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
- buildah push ${FQ_IMAGE_NAME}:java${JAVA_VERSION}
build_java21:
<<: *build_template
variables:
JAVA_VERSION: "21"
-17
View File
@@ -1,17 +0,0 @@
.default_build_template: &build_template
stage: build
script:
- buildah info
- buildah bud --storage-driver=${STORAGE_DRIVER} --pull -t ${FQ_IMAGE_NAME}:php${PHP_VERSION} -f php/Dockerfile.php${PHP_VERSION} .
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
- buildah push ${FQ_IMAGE_NAME}:php${PHP_VERSION}
build_php82:
<<: *build_template
variables:
PHP_VERSION: "82"
build_php84:
<<: *build_template
variables:
PHP_VERSION: "84"
-12
View File
@@ -1,12 +0,0 @@
.default_build_template: &build_template
stage: build
script:
- buildah info
- buildah bud --storage-driver=${STORAGE_DRIVER} --pull -t ${FQ_IMAGE_NAME}:python${PYTHON_VERSION} -f python/Dockerfile.python${PYTHON_VERSION} .
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
- buildah push ${FQ_IMAGE_NAME}:python${PYTHON_VERSION}
build_python3:
<<: *build_template
variables:
PYTHON_VERSION: "3"