Skip to content

Commit

Permalink
fix: [#173984610] Android alpha build is created at each master commit (
Browse files Browse the repository at this point in the history
#2097)

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* change release tag

* restore alpha-release-android only when a release tag is pushed
  • Loading branch information
fabriziofff authored Jul 27, 2020
1 parent a7d56ca commit ae0a28d
Showing 1 changed file with 45 additions and 11 deletions.
56 changes: 45 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ android_jars_cache_key: &android_jars_cache_key jars-{{ checksum "android/build.

ios_gems_cache_key: &ios_gems_cache_key ruby-{{ checksum "Gemfile.lock" }}

release_tag: &release_tag /^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$/

# nodejs builds
defaults_js: &defaults_js
<<: *defaults
Expand Down Expand Up @@ -500,17 +502,49 @@ workflows:
requires:
- test-ios-e2e-build

# Build Android alpha release only on master branch when a new tag is pushed
#- alpha-release-android:
# requires:
# - compile-typescript
# - run-tests
# - lint-typescript
# filters:
# tags:
# only: \d\.\d\.\d(\.rc-\d+)?
# branches:
# only: master
# Release workflow triggered only when a new release tag is pushed
release:
jobs:
- compile-typescript:
filters:
tags:
only: *release_tag
branches:
ignore: /.*/

- run-tests:
filters:
tags:
only: *release_tag
branches:
ignore: /.*/

- lint-typescript:
filters:
tags:
only: *release_tag
branches:
ignore: /.*/

- run-danger:
filters:
tags:
only: *release_tag
branches:
ignore: /.*/

# Build Android alpha release & submit to play store
- alpha-release-android:
requires:
- compile-typescript
- run-tests
- lint-typescript
filters:
tags:
only: *release_tag
branches:
ignore: /.*/

# nightly workflow to check pagopa specs (runs only on master branch)
# if prod and dev specs are different
# a slack notification will be sent on channel #io-status
Expand Down

0 comments on commit ae0a28d

Please sign in to comment.