Files
coder-images/php/.gitlab-ci.yml
T
2025-11-13 23:53:01 -05:00

17 lines
564 B
YAML

.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}
rules:
- changes:
- php/**
- Dockerfile.base
- if: '$CI_PIPELINE_SOURCE == "schedule"'
build_php82:
<<: *build_template
variables:
PHP_VERSION: "82"