add publish jobs

This commit is contained in:
Andrew Dolgov 2023-10-21 20:17:32 +03:00
parent ff818a75f0
commit e7ddbbb2ce
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 22 additions and 9 deletions

View File

@ -2,6 +2,7 @@ stages:
- lint - lint
- build - build
- test - test
- publish
variables: variables:
ESLINT_PATHS: js plugins ESLINT_PATHS: js plugins
@ -26,23 +27,23 @@ eslint:
phpstan: phpstan:
extends: .phpstan extends: .phpstan
ttrss-web-nginx:
extends: .build-master-commit-only
variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile
ttrss-web-nginx:branch: ttrss-web-nginx:branch:
extends: .build-branch extends: .build-branch
variables: variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile
ttrss-fpm-pgsql-static: ttrss-fpm-pgsql-static:branch:
extends: .build-master-commit-only extends: .build-branch
variables: variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile
ttrss-fpm-pgsql-static:branch: ttrss-web-nginx:
extends: .build-branch extends: .build-master-commit-only
variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile
ttrss-fpm-pgsql-static:
extends: .build-master-commit-only
variables: variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile
@ -68,3 +69,15 @@ integration-test:
extends: .integration-test extends: .integration-test
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
ttrss-web-nginx:publish:
stage: publish
extends: .build-master
variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile
ttrss-fpm-pgsql-static:publish:
stage: publish
extends: .build-master
variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile