3737 # - make_target: nvidia
3838 # containerfile_path: training/instructlab/instructlab/containers/cuda/Containerfile
3939 - make_target : amd
40- containerfile_path : training/instructlab/ instructlab/containers/rocm/Containerfile
40+ containerfile_path : instructlab/containers/rocm/Containerfile
4141 - make_target : intel
42- containerfile_path : training/instructlab/ instructlab/containers/hpu/Containerfile
42+ containerfile_path : instructlab/containers/hpu/Containerfile
4343 runs-on : ubuntu-latest
4444 # runs-on: ubuntu-22.04-2core # starting with minimal option
4545 steps :
@@ -54,15 +54,34 @@ jobs:
5454 run : make instructlab
5555 working-directory : ./training/instructlab
5656
57+ - name : Checkout buildah codebase
58+ id : checkout-buildah
59+ 60+ with :
61+ repository : containers/buidlah
62+ path : buildah
63+ ref : ' main'
64+
65+ - name : Setup Buildah v1.36
66+ working-directory : buildah
67+ run : |
68+ sudo apt-get -y -qq update
69+ sudo apt-get -y install bats btrfs-progs git go-md2man golang libapparmor-dev libglib2.0-dev libgpgme11-dev libseccomp-dev libselinux1-dev make skopeo
70+ make runc all SECURITYTAGS="apparmor seccomp"
71+ sudo make install install.runc
72+
5773 - name : Build Image
5874 id : build_image
59- uses : redhat-actions/buildah-build@v2
60- with :
61- image : ${{ env.REGISTRY }}/${{ env.REGISTRY_ORG }}/instructlab-${{ matrix.make_target }}
62- tags : latest ${{ github.sha }}
63- platforms : linux/amd64
64- containerfiles : ${{ matrix.containerfile_path }}
65- context : training/instructlab/instructlab/
75+ working-directory : ./training/instructlab
76+ run : |
77+ buildah --version
78+ buildah bud --platform linux/amd64 \
79+ -f ${{ matrix.containerfile_path }} \
80+ --format docker \
81+ --tls-verify=true \
82+ -t ${{ env.REGISTRY }}/${{ env.REGISTRY_ORG }}/instructlab-${{ matrix.make_target}}:latest \
83+ instructlab/
84+
6685
6786 - name : Login to Container Registry
6887 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
0 commit comments