-
Notifications
You must be signed in to change notification settings - Fork 995
new(ci): gha master and release workflows #2501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9790887
3b7b5a5
f9333ef
ca345ff
75759c8
0c737ac
bb588f9
d87cb9d
f070669
94b7d84
cae49ae
dc37254
727e5a9
d401d44
a66fa66
62d80bc
84db6fb
8fa85f9
9093d82
c4faed9
9ce05be
337b9e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,12 +2,10 @@ name: CI Build | |
| on: | ||
| pull_request: | ||
| branches: [master] | ||
| push: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We now have a dedicated |
||
| branches: [master] | ||
| workflow_dispatch: | ||
|
|
||
| # Checks if any concurrent jobs under the same pull request or branch are being executed | ||
| # NOTE: this will cancel every workflow that is being ran as group is just the github ref (without the workflow name) | ||
| # NOTE: this will cancel every workflow that is being ran against a PR as group is just the github ref (without the workflow name) | ||
| concurrency: | ||
| group: ${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Dev Packages and Docker images | ||
| on: | ||
| push: | ||
| branches: [master] | ||
|
|
||
| # Checks if any concurrent jobs is running for master CI and eventually cancel it | ||
| concurrency: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This fixes #1876 |
||
| group: ci-master | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build-dev-packages: | ||
| uses: falcosecurity/falco/.github/workflows/reusable_build_packages.yaml@master | ||
| with: | ||
| arch: x86_64 | ||
| secrets: inherit | ||
|
|
||
| build-dev-packages-arm64: | ||
| uses: falcosecurity/falco/.github/workflows/reusable_build_packages.yaml@master | ||
| with: | ||
| arch: aarch64 | ||
| secrets: inherit | ||
|
|
||
| publish-dev-packages: | ||
| needs: [build-dev-packages, build-dev-packages-arm64] | ||
| uses: falcosecurity/falco/.github/workflows/reusable_publish_packages.yaml@master | ||
| with: | ||
| bucket: '-dev' | ||
| version: ${{ needs.build-dev-packages.outputs.version }} | ||
| secrets: inherit | ||
|
|
||
| # Both build-dev-docker and its arm64 counterpart require build-dev-packages because they use its output | ||
| build-dev-docker: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same goes for the release CI. |
||
| needs: [build-dev-packages, publish-dev-packages] | ||
| uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@master | ||
| with: | ||
| arch: x86_64 | ||
| bucket: '-dev' | ||
| version: ${{ needs.build-dev-packages.outputs.version }} | ||
| secrets: inherit | ||
|
|
||
| build-dev-docker-arm64: | ||
| needs: [build-dev-packages, publish-dev-packages] | ||
| uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@master | ||
| with: | ||
| arch: aarch64 | ||
| bucket: '-dev' | ||
| version: ${{ needs.build-dev-packages.outputs.version }} | ||
| secrets: inherit | ||
|
|
||
| publish-dev-docker: | ||
| needs: [build-dev-docker, build-dev-docker-arm64] | ||
| uses: falcosecurity/falco/.github/workflows/reusable_publish_docker.yaml@master | ||
| secrets: inherit | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid conflicts; disable circleCI jobs.