37
37
# - make_target: nvidia
38
38
# containerfile_path: training/instructlab/instructlab/containers/cuda/Containerfile
39
39
- make_target : amd
40
- containerfile_path : training/instructlab/ instructlab/containers/rocm/Containerfile
40
+ containerfile_path : instructlab/containers/rocm/Containerfile
41
41
- make_target : intel
42
- containerfile_path : training/instructlab/ instructlab/containers/hpu/Containerfile
42
+ containerfile_path : instructlab/containers/hpu/Containerfile
43
43
runs-on : ubuntu-latest
44
44
# runs-on: ubuntu-22.04-2core # starting with minimal option
45
45
steps :
@@ -54,15 +54,34 @@ jobs:
54
54
run : make instructlab
55
55
working-directory : ./training/instructlab
56
56
57
+ - name : Checkout buildah codebase
58
+ id : checkout-buildah
59
+
60
+ with :
61
+ repository : containers/buildah
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
+
57
73
- name : Build Image
58
74
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
+
66
85
67
86
- name : Login to Container Registry
68
87
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
0 commit comments