Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

going back to basics with 2core runner #374

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 42 additions & 39 deletions .github/workflows/instructlab_baseimages_build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# - uses: actions/[email protected]

- name: Build Image
id: build_image
uses: redhat-actions/[email protected]
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/[email protected]
# 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/[email protected]
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/[email protected]
# 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/[email protected]
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/[email protected]
# with:
# image: ${{ steps.build_image.outputs.image }}
# tags: ${{ steps.build_image.outputs.tags }}
# registry: ${{ env.REGISTRY }}
Loading