Skip to content

Commit

Permalink
(EPROC-20383) Used jdk zulu
Browse files Browse the repository at this point in the history
  • Loading branch information
ashestak-sc authored Apr 6, 2021
1 parent fc05c7d commit 46ee15e
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defaults: &defaults
docker:
- image: opuscapita/minsk-core-ci:grails-2.4.4-jdk-8u192-nodejs-8.17.0-maven-3.3.9
- image: opuscapita/minsk-core-ci:4
working_directory: ~/build

version: 2.1
Expand All @@ -9,13 +9,15 @@ orbs:
jira: circleci/jira@1.2.2

jobs:
init:
docker:
- image: opuscapita/minsk-core-machineuser-env:2
steps:
- run: circle_ci_add_env.sh GH_MAIL GH_NAME

build:
<<: *defaults
steps:
- run:
name: Environment inject.
command: env_inject.sh

- checkout

- restore_cache:
Expand All @@ -24,6 +26,8 @@ jobs:
- i18n-{{ .Branch }}
- i18n

- run: if [ -f /.dockerenv ]; then configure-maven.sh && configure-grails.sh && configure-npm.sh; fi

- run:
name: "Installing dependencies."
command: yarn install
Expand Down Expand Up @@ -59,10 +63,6 @@ jobs:
build_release:
<<: *defaults
steps:
- run:
name: Environment inject
command: /bin/env_inject.sh

- checkout

- restore_cache:
Expand All @@ -71,6 +71,8 @@ jobs:
- i18n-{{ .Branch }}
- i18n

- run: if [ -f /.dockerenv ]; then configure-maven.sh && configure-grails.sh && configure-npm.sh; fi

- run:
name: "Installing dependencies."
command: yarn install
Expand All @@ -92,13 +94,10 @@ jobs:
release:
<<: *defaults
steps:

- run:
name: Environment inject
command: env_inject.sh

- checkout


- run: if [ -f /.dockerenv ]; then configure-maven.sh && configure-grails.sh && configure-npm.sh; fi

- run:
name: Executing release scrtipt.
command: .circleci/release.sh
Expand All @@ -107,20 +106,33 @@ workflows:
version: 2
release-and-build:
jobs:
- init:
filters:
tags:
only: /.*/
- release:
filters:
branches:
only: release
requires:
- init
post-steps:
- jira/notify
- build:
filters:
branches:
ignore: release
requires:
- init
post-steps:
- jira/notify

- build_release:
filters:
tags:
only: /.*/
branches:
ignore: /.*/
requires:
- init
post-steps:
- jira/notify

0 comments on commit 46ee15e

Please sign in to comment.