diff --git a/.github/workflows/caa_build_and_push.yaml b/.github/workflows/caa_build_and_push.yaml index d9630438e..5e924fcfd 100644 --- a/.github/workflows/caa_build_and_push.yaml +++ b/.github/workflows/caa_build_and_push.yaml @@ -47,14 +47,18 @@ jobs: build_push_job: name: build and push runs-on: ${{ inputs.runner }} + + permissions: + packages: write + strategy: fail-fast: false matrix: include: - type: dev arches: ${{ inputs.dev_arches }} - - type: release - arches: ${{ inputs.release_arches }} + # - type: release + # arches: ${{ inputs.release_arches }} steps: - name: Checkout the code uses: actions/checkout@v4 @@ -88,6 +92,7 @@ jobs: run: | sudo apt-get update -y sudo apt-get install -y libvirt-dev + - name: Login to quay Container Registry if: ${{ startsWith(inputs.registry, 'quay.io') }} uses: docker/login-action@v3 @@ -100,10 +105,22 @@ jobs: if: ${{ startsWith(inputs.registry, 'ghcr.io') }} uses: docker/login-action@v3 with: - registry: ${{ inputs.registry }} + registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: mgns test push + env: + REGISTRY: ${{ inputs.registry }} + run: | + mdkdir mgns && cd mgns + cat < Dockerfile + FROM ubuntu:22.04 + + RUN echo hello > /hello.txt + EOF + docker buildx build -t "${REGISTRY}/cloud-api-adaptor:latest-dev" --push . + - name: Build and push image uses: nick-fields/retry@v3 with: diff --git a/.github/workflows/daily-e2e-tests-libvirt.yaml b/.github/workflows/daily-e2e-tests-libvirt.yaml index 3c0b29333..280aaf6c1 100644 --- a/.github/workflows/daily-e2e-tests-libvirt.yaml +++ b/.github/workflows/daily-e2e-tests-libvirt.yaml @@ -11,6 +11,10 @@ on: # will base on default branch `main` - cron: '15 4 * * *' workflow_dispatch: + inputs: + git-ref: + type: string + default: 'refs/heads/main' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -21,7 +25,7 @@ jobs: uses: ./.github/workflows/e2e_run_all.yaml with: caa_image_tag: latest - git_ref: refs/heads/main + git_ref: ${{ inputs.git-ref || 'refs/heads/main' }} podvm_image_tag: latest registry: ghcr.io/${{ github.repository_owner }} secrets: inherit diff --git a/.github/workflows/e2e_libvirt.yaml b/.github/workflows/e2e_libvirt.yaml index 00d16c327..2a2d6d460 100644 --- a/.github/workflows/e2e_libvirt.yaml +++ b/.github/workflows/e2e_libvirt.yaml @@ -182,7 +182,11 @@ jobs: export TEST_E2E_TIMEOUT="75m" export TEST_E2E_SECURE_COMMS="${{ inputs.secure_comms }}" - make test-e2e + # make test-e2e + make test-e2e RUN_TESTS="TestLibvirtCreateSimplePod" + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 - name: Debug tests failure if: failure() && steps.runTests.outcome == 'failure' diff --git a/.github/workflows/e2e_run_all.yaml b/.github/workflows/e2e_run_all.yaml index 90b9de475..57e7a7757 100644 --- a/.github/workflows/e2e_run_all.yaml +++ b/.github/workflows/e2e_run_all.yaml @@ -37,11 +37,13 @@ defaults: run: working-directory: src/cloud-api-adaptor + jobs: # Build the podvm images. # podvm_builder: uses: ./.github/workflows/podvm_builder.yaml + if: false with: registry: ${{ inputs.registry }} image_tag: ${{ inputs.podvm_image_tag }} @@ -50,6 +52,7 @@ jobs: podvm_binaries: needs: [podvm_builder] + if: false uses: ./.github/workflows/podvm_binaries.yaml with: registry: ${{ inputs.registry }} @@ -59,6 +62,7 @@ jobs: podvm: needs: [podvm_binaries] + if: false uses: ./.github/workflows/podvm.yaml with: registry: ${{ inputs.registry }} @@ -78,6 +82,7 @@ jobs: podvm_mkosi_s390x: uses: ./.github/workflows/podvm_mkosi.yaml + if: false with: registry: ${{ inputs.registry }} image_tag: ${{ inputs.podvm_image_tag }} @@ -197,6 +202,7 @@ jobs: caa_image_amd64: uses: ./.github/workflows/caa_build_and_push.yaml + if: false with: registry: ${{ inputs.registry }} dev_arches: 'linux/amd64' @@ -208,6 +214,7 @@ jobs: caa_image_s390x: uses: ./.github/workflows/caa_build_and_push.yaml + if: false with: registry: ${{ inputs.registry }} dev_arches: 'linux/s390x'