use imageDigestSources #564
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
name: Build project | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test-code: | |
runs-on: ubuntu-latest | |
container: registry.fedoraproject.org/fedora:latest | |
steps: | |
- name: Install packages | |
run: | | |
dnf -q -y update | |
dnf -q -y install python3-pip git ShellCheck gcc python3-devel | |
pip3 install --upgrade pip | |
pip3 install --upgrade ansible-core kubernetes ansible-lint netaddr | |
ansible-galaxy collection install -U kubernetes.core community.general ansible.utils | |
git config --global --add safe.directory /__w/openshift-edge-installer/openshift-edge-installer | |
- uses: actions/checkout@v4 | |
- name: Check code | |
run: | | |
ansible-lint -s -x yaml[line-length],var-naming[no-role-prefix] --exclude .github | |
shellcheck -o all edge/roles/edge_csr_approver/files/csr_approver.sh | |
test-container: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build container | |
run: | | |
podman build . |