feat: add support for building and pushing OCI configuration #39
Workflow file for this run
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
on: | |
pull_request: | |
name: Check | |
jobs: | |
conform: | |
name: Conformance | |
runs-on: ubuntu-latest | |
container: | |
image: golang:1 | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: Mark sources as safe for Git | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Fetch main branch for reference | |
run: git fetch origin main:main | |
if: github.ref_name != 'main' | |
- name: Install siderolabs/conform | |
run: go install github.com/siderolabs/conform/cmd/conform@latest | |
- name: Run siderolabs/conform | |
run: | | |
set +e | |
output=$(conform enforce 2>&1) | |
result=$? | |
printf '```\n%s\n```' "$output" | tee -a "$GITHUB_STEP_SUMMARY" | |
exit $result |