Skip to content

Commit

Permalink
Ignore default branch (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
marians authored Nov 5, 2024
1 parent 8cd9648 commit 0c5df43
Showing 1 changed file with 43 additions and 39 deletions.
82 changes: 43 additions & 39 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,61 @@ orbs:
workflows:
test:
jobs:
- run-tests:
name: run-tests
filters:
- run-tests:
name: run-tests
filters:
# Needed to trigger job also on git tag.
tags:
only: /^v.*/

- architect/push-to-registries:
context: architect
name: push-to-registries
requires:
- run-tests
filters:
tags:
only: /^v.*/

- architect/push-to-registries:
context: architect
name: push-to-registries
requires:
- run-tests
filters:
# Needed to trigger job also on git tag.
tags:
only: /^v.*/

- publish-github-release:
name: publish-github-release
requires:
- push-to-registries
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
tags:
only: /^v.*/

branches:
ignore:
- main
- master
- publish-github-release:
name: publish-github-release
requires:
- push-to-registries
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

jobs:
run-tests:
machine:
image: ubuntu-2204:2024.01.1
steps:
- checkout
- run:
command: mkdir -p .coverage
- checkout
- run:
command: mkdir -p .coverage

- run:
name: Execute tests
command: |
make docker-test-ci
- run:
name: Execute tests
command: |
make docker-test-ci
- codecov/upload:
cli_args: "-v"
- codecov/upload:
cli_args: -v
# file: .coverage/coverage.xml

publish-github-release:
docker:
- image: cibuilds/github:0.13
- image: cibuilds/github:0.13
steps:
- checkout
- run:
name: "Publish Release on GitHub"
command: |
ghr -t ${ARCHITECT_GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./dacct.sh
- checkout
- run:
name: Publish Release on GitHub
command: |
ghr -t ${ARCHITECT_GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./dacct.sh

0 comments on commit 0c5df43

Please sign in to comment.