From 418b57b7a2ded64a1878ed8831f0cdff4b5c5fc4 Mon Sep 17 00:00:00 2001 From: greg pereira Date: Mon, 29 Apr 2024 10:04:33 -0700 Subject: [PATCH] going back to basics with 2core runner Signed-off-by: greg pereira --- .../instructlab_baseimages_build_push.yaml | 81 ++++++++++--------- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/.github/workflows/instructlab_baseimages_build_push.yaml b/.github/workflows/instructlab_baseimages_build_push.yaml index df7440d3..1185f4d8 100644 --- a/.github/workflows/instructlab_baseimages_build_push.yaml +++ b/.github/workflows/instructlab_baseimages_build_push.yaml @@ -77,49 +77,52 @@ jobs: registry: ${{ env.REGISTRY }} build-and-push-image: - if: "success() && !contains(github.event.pull_request.labels.*.name, 'hold-tests') && github.repository == 'containers-mirror/ai-lab-recipes'" - needs: build-and-push-builder-image - strategy: - matrix: - include: - - image_name: instructlab-nvidia - label: driver-version=550.54.15 - containerfile: training/nvidia/Containerfile - context: training/nvidia - platforms: linux/amd64 + # if: "success() && !contains(github.event.pull_request.labels.*.name, 'hold-tests') && github.repository == 'containers-mirror/ai-lab-recipes'" + # needs: build-and-push-builder-image + # strategy: + # matrix: + # include: + # - image_name: instructlab-nvidia + # label: driver-version=550.54.15 + # containerfile: training/nvidia/Containerfile + # context: training/nvidia + # platforms: linux/amd64 runs-on: ubuntu-22.04-2core steps: - - name: Remove unnecessary files + - name: hello-world run: | - sudo rm -rf /usr/share/dotnet - sudo rm -rf "$AGENT_TOOLSDIRECTORY" + echo "hello world!" + # - name: Remove unnecessary files + # run: | + # sudo rm -rf /usr/share/dotnet + # sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - uses: actions/checkout@v4.1.1 + # - uses: actions/checkout@v4.1.1 - - name: Build Image - id: build_image - uses: redhat-actions/buildah-build@v2.13 - with: - image: ${{ env.REGISTRY }}/${{ env.REGISTRY_ORG }}/${{ matrix.image_name }} - platforms: ${{ matrix.platforms }} - labels: | - ${{ matrix.label }} - tags: latest - containerfiles: ${{ matrix.containerfile }} - context: ${{ matrix.context }} + # - name: Build Image + # id: build_image + # uses: redhat-actions/buildah-build@v2.13 + # with: + # image: ${{ env.REGISTRY }}/${{ env.REGISTRY_ORG }}/${{ matrix.image_name }} + # platforms: ${{ matrix.platforms }} + # labels: | + # ${{ matrix.label }} + # tags: latest + # containerfiles: ${{ matrix.containerfile }} + # context: ${{ matrix.context }} - - name: Login to Container Registry - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: redhat-actions/podman-login@v1.7 - with: - registry: ${{ env.REGISTRY }} - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASSWORD }} + # - name: Login to Container Registry + # if: github.event_name == 'push' && github.ref == 'refs/heads/main' + # uses: redhat-actions/podman-login@v1.7 + # with: + # registry: ${{ env.REGISTRY }} + # username: ${{ secrets.REGISTRY_USER }} + # password: ${{ secrets.REGISTRY_PASSWORD }} - - name: Push image - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: redhat-actions/push-to-registry@v2.8 - with: - image: ${{ steps.build_image.outputs.image }} - tags: ${{ steps.build_image.outputs.tags }} - registry: ${{ env.REGISTRY }} + # - name: Push image + # if: github.event_name == 'push' && github.ref == 'refs/heads/main' + # uses: redhat-actions/push-to-registry@v2.8 + # with: + # image: ${{ steps.build_image.outputs.image }} + # tags: ${{ steps.build_image.outputs.tags }} + # registry: ${{ env.REGISTRY }}