WIP: Change: Ci: following guidelines #11
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: CI | ||
on: | ||
push: | ||
branches: [ main] | ||
tags: ["v*"] | ||
pull_request: | ||
workflow_dispatch: | ||
repository_dispatch: | ||
schedule: | ||
# rebuild image every sunday | ||
- cron: "0 0 * * 0" | ||
jobs: | ||
init: | ||
uses: ./.github/workflows/init.yaml | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
linting: | ||
uses: ./.github/workflows/ci.yml | ||
container: | ||
needs: [build, init] | ||
uses: ./.github/workflows/push-container.yml | ||
Check failure on line 23 in .github/workflows/control.yml
|
||
secrets: | ||
dockerhub_user: ${{ secrets.DOCKERHUB_USERNAME }} | ||
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN}} | ||
with: | ||
is_latest_tag: ${{needs.init.outputs.is_latest_tag}} | ||
is_version_tag: ${{needs.init.outputs.is_version_tag}} | ||
# although it seems a bit odd, but that way we ensure | ||
# that we test the latest greatest thing. | ||
smoketests: | ||
needs: [container, init] | ||
uses: ./.github/workflows/smoketest.yaml |