Skip to content

Commit bccb6a8

Browse files
bump buildah base version for cache mount type
Signed-off-by: greg pereira <[email protected]>
1 parent 5f146aa commit bccb6a8

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

.github/workflows/instructlab.yaml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
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+
uses: actions/[email protected]
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+
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

Comments
 (0)