update ci for release

This commit is contained in:
Jakub Błaszczyk 2023-10-26 15:52:20 +02:00 committed by GitHub
parent ede5d881eb
commit f2e36490db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
name: CI name: CI
on: on:
create:
push: push:
branches: branches:
- "master" - "master"
@ -76,7 +77,8 @@ jobs:
name: Compile and test name: Compile and test
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: | if: |
needs.detect-repo-changes.outputs.code-changed == 'true' needs.detect-repo-changes.outputs.code-changed == 'true' ||
github.ref_type == 'tag'
needs: needs:
- detect-repo-changes - detect-repo-changes
- dependencies - dependencies
@ -95,7 +97,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: | if: |
needs.detect-repo-changes.outputs.code-changed == 'true' || needs.detect-repo-changes.outputs.code-changed == 'true' ||
needs.detect-repo-changes.outputs.dockerfile-changed == 'true' needs.detect-repo-changes.outputs.dockerfile-changed == 'true' ||
github.ref_type == 'tag'
needs: needs:
- detect-repo-changes - detect-repo-changes
- dependencies - dependencies
@ -115,7 +118,8 @@ jobs:
name: Build docker image name: Build docker image
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: | if: |
needs.detect-repo-changes.outputs.dockerfile-changed == 'true' needs.detect-repo-changes.outputs.dockerfile-changed == 'true' ||
github.ref_type == 'tag'
needs: needs:
- detect-repo-changes - detect-repo-changes
- dependencies - dependencies
@ -128,7 +132,7 @@ jobs:
run: make docker-build run: make docker-build
release: release:
if: ${{ github.ref_type == 'tag' }} if: github.ref_type == 'tag'
needs: needs:
- test-build - test-build
- test-integration - test-integration