Skip to content

ci: run on merge to main, also build docker #75

ci: run on merge to main, also build docker

ci: run on merge to main, also build docker #75

Workflow file for this run

name: CI/CD
on:
workflow_call:
push:
branches:
- main
pull_request:
workflow_dispatch:
on:

Check failure on line 10 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 10
pull_request:
workflow_dispatch:
env:
CI_IS_DEFAULT_BRANCH: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
CI_IS_TAG: ${{ startsWith(github.ref, 'refs/tags/') }}
jobs:
check-inputs:
runs-on: ubuntu-24.04
outputs:
CI_CARGO_PROFILE: ${{ steps.set-profile.outputs.CI_CARGO_PROFILE }}
steps:
- name: Set CI_CARGO_PROFILE
id: set-profile
run: |
if [[ ${CI_IS_DEFAULT_BRANCH} == 'true' ]]; then
echo "CI_CARGO_PROFILE=artifact" >> $GITHUB_OUTPUT
else
echo "CI_CARGO_PROFILE=debug" >> $GITHUB_OUTPUT
fi
rust:
needs: check-inputs
uses: ./.github/workflows/rust.yaml
with:
profile: ${{ needs.check-inputs.outputs.CI_CARGO_PROFILE }}
container:
needs: rust
uses: ./.github/workflows/container.yaml