add branch tasks
This commit is contained in:
parent
92185933f9
commit
fd98d6d117
|
@ -36,20 +36,33 @@ stages:
|
||||||
--cache-to type=inline
|
--cache-to type=inline
|
||||||
${BUILD_CONTEXT}
|
${BUILD_CONTEXT}
|
||||||
|
|
||||||
|
# note: CI_REGISTRY, etc. variables are privileged
|
||||||
|
#
|
||||||
# .build-branch:
|
# .build-branch:
|
||||||
# image:
|
# image:
|
||||||
# name: ${CI_KANIKO_IMAGE}
|
# name: ${CI_DOCKER_IMAGE}
|
||||||
# entrypoint: [""] # kaniko doesn't have /bin/sh
|
|
||||||
# stage: build
|
# stage: build
|
||||||
# rules:
|
# rules:
|
||||||
|
# - if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "web"
|
||||||
|
# changes:
|
||||||
|
# - '**/*.php'
|
||||||
|
# - '**/*.js'
|
||||||
|
# - '.docker/**/*'
|
||||||
# - if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
|
# - if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
|
||||||
|
# when: manual
|
||||||
|
# before_script:
|
||||||
|
# - docker buildx create --name mp-builder --driver docker-container --bootstrap --use
|
||||||
|
# - CONTAINER_NAME=$(echo ${CI_JOB_NAME} | sed 's/branch://')
|
||||||
# script:
|
# script:
|
||||||
# - /kaniko/executor
|
# - docker buildx build
|
||||||
# --context "${BUILD_CONTEXT}"
|
# --push
|
||||||
# --dockerfile "${DOCKER_DIR}/Dockerfile"
|
# --platform linux/amd64
|
||||||
# --destination "${CI_REGISTRY}/cthulhoo/${NAME}:${CI_COMMIT_BRANCH}-latest"
|
# --tag ${CI_REGISTRY}/cthulhoo/$CONTAINER_NAME:${CI_COMMIT_BRANCH}-${CI_COMMIT_SHORT_SHA}
|
||||||
# --destination "${CI_REGISTRY}/cthulhoo/${NAME}:${CI_COMMIT_BRANCH}-${CI_COMMIT_SHORT_SHA}"
|
# --tag ${CI_REGISTRY}/cthulhoo/$CONTAINER_NAME:${CI_COMMIT_BRANCH}
|
||||||
# --no-push
|
# --build-context app-src=.
|
||||||
|
# --cache-from type=registry,ref=${CI_REGISTRY}/cthulhoo/$CONTAINER_NAME:${CI_COMMIT_BRANCH}
|
||||||
|
# --cache-to type=inline
|
||||||
|
# ${BUILD_CONTEXT}
|
||||||
|
|
||||||
phpunit:
|
phpunit:
|
||||||
image:
|
image:
|
||||||
|
@ -109,6 +122,16 @@ ttrss-fpm-pgsql-static:
|
||||||
variables:
|
variables:
|
||||||
BUILD_CONTEXT: ${CI_PROJECT_DIR}/.docker/app
|
BUILD_CONTEXT: ${CI_PROJECT_DIR}/.docker/app
|
||||||
|
|
||||||
|
# branch:ttrss-web-nginx:
|
||||||
|
# extends: .build-branch
|
||||||
|
# variables:
|
||||||
|
# BUILD_CONTEXT: ${CI_PROJECT_DIR}/.docker/web-nginx
|
||||||
|
|
||||||
|
# branch:ttrss-fpm-pgsql-static:
|
||||||
|
# extends: .build-branch
|
||||||
|
# variables:
|
||||||
|
# BUILD_CONTEXT: ${CI_PROJECT_DIR}/.docker/app
|
||||||
|
|
||||||
phpdoc:
|
phpdoc:
|
||||||
image:
|
image:
|
||||||
name: ${CI_DOCKER_IMAGE}
|
name: ${CI_DOCKER_IMAGE}
|
||||||
|
|
Loading…
Reference in New Issue