Upgrade go to v1.25.6 #20
Workflow file for this run
This file contains hidden or 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: Docker Build Validation | |
| on: | |
| pull_request: | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-22.04 | |
| outputs: | |
| nephio-operator: ${{ steps.filter.outputs.nephio-operator }} | |
| o2ims-operator: ${{ steps.filter.outputs.o2ims-operator }} | |
| focom-operator: ${{ steps.filter.outputs.focom-operator }} | |
| krm-functions: ${{ steps.filter.outputs.krm-functions }} | |
| gitops-tools: ${{ steps.filter.outputs.gitops-tools }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v2 | |
| id: filter | |
| with: | |
| filters: | | |
| nephio-operator: | |
| - 'operators/nephio-controller-manager/**' | |
| - 'controllers/pkg/**' | |
| o2ims-operator: | |
| - 'operators/o2ims-operator/**' | |
| focom-operator: | |
| - 'operators/focom-operator/**' | |
| krm-functions: | |
| - 'krm-functions/**' | |
| gitops-tools: | |
| - 'gitops-tools/**' | |
| nephio-operator: | |
| needs: changes | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build or skip | |
| run: | | |
| if [[ "${{ needs.changes.outputs.nephio-operator }}" == "true" ]]; then | |
| docker build -f operators/nephio-controller-manager/Dockerfile . | |
| else | |
| echo "No changes detected - skipping build" | |
| exit 0 | |
| fi | |
| o2ims-operator: | |
| needs: changes | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build or skip | |
| run: | | |
| if [[ "${{ needs.changes.outputs.o2ims-operator }}" == "true" ]]; then | |
| docker build -f operators/o2ims-operator/Dockerfile operators/o2ims-operator | |
| else | |
| echo "No changes detected - skipping build" | |
| exit 0 | |
| fi | |
| focom-operator: | |
| needs: changes | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build or skip | |
| run: | | |
| if [[ "${{ needs.changes.outputs.focom-operator }}" == "true" ]]; then | |
| docker build -f operators/focom-operator/Dockerfile operators/focom-operator | |
| else | |
| echo "No changes detected - skipping build" | |
| exit 0 | |
| fi | |
| krm-functions: | |
| needs: changes | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build or skip | |
| run: | | |
| if [[ "${{ needs.changes.outputs.krm-functions }}" == "true" ]]; then | |
| find krm-functions -name Dockerfile -exec dirname {} \; | while read dir; do | |
| docker build -f "$dir/Dockerfile" . | |
| done | |
| else | |
| echo "No changes detected - skipping build" | |
| exit 0 | |
| fi | |
| gitops-tools: | |
| needs: changes | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build or skip | |
| run: | | |
| if [[ "${{ needs.changes.outputs.gitops-tools }}" == "true" ]]; then | |
| find gitops-tools -name Dockerfile -exec dirname {} \; | while read dir; do | |
| docker build -f "$dir/Dockerfile" "$dir" | |
| done | |
| else | |
| echo "No changes detected - skipping build" | |
| exit 0 | |
| fi |