refactor: rework project structure #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: Continous Integration | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'README.md' | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
jobs: | ||
secret: | ||
name: Call GG Shield | ||
uses: irishlab-io/pipelines/.github/workflows/reusable-ggshield.yml@main | ||
secrets: inherit | ||
pre-commit: | ||
name: Call Pre-Commit | ||
uses: irishlab-io/pipelines/.github/workflows/reusable-pre-commit.yml@main | ||
Check failure on line 26 in .github/workflows/ci.yml
|
||
call-docker-build: | ||
name: Call Docker Build | ||
needs: | ||
- pre-commit | ||
- secret | ||
uses: irishlab-io/pipelines/.github/workflows/reusable-docker-build.yml@main | ||
permissions: | ||
contents: read | ||
packages: write # needed to push docker image to ghcr.io | ||
pull-requests: write # needed to create and update comments in PRs | ||
with: | ||
ghcr-enable: true | ||
image-names: | | ||
ghcr.io/${{ github.repository }} | ||
tag-rules: | | ||
type=raw,value=stable-{{date 'YYYYMMDD'}}-{{sha}},enable={{is_default_branch}},priority=300 | ||
type=ref,event=tag,priority=200 | ||
type=raw,value=latest,enable={{is_default_branch}},priority=100 | ||
type=raw,value=gha-${{ github.run_id }},enable=${{github.event_name == 'pull_request'}},priority=200 | ||
type=ref,event=pr,priority=100 | ||
platforms: linux/amd64,linux/arm64 | ||
comment-enable: true |