-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gyanesh Mishra
authored and
Gyanesh Mishra
committed
Dec 8, 2023
1 parent
9d4f6b7
commit b1b640b
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,8 @@ jobs: | |
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
with: | ||
cleanup: false # Keep buildkit cache around | ||
|
||
- name: Set up containerd for ubuntu | ||
uses: crazy-max/[email protected] | ||
|
@@ -72,7 +74,15 @@ jobs: | |
run: | | ||
tag_hash=$(echo -n "$tags" | md5sum | awk '{print $1}') | ||
echo "tag_hash=$tag_hash" >> $GITHUB_OUTPUT | ||
echo "image_path=/var/lib/kubelet/lorax" >> $GITHUB_OUTPUT | ||
echo "image_dir=/var/lib/kubelet/images" >> $GITHUB_OUTPUT | ||
echo "image_path=/var/lib/kubelet/images/lorax" >> $GITHUB_OUTPUT | ||
- name: Create and update image directory | ||
env: | ||
image_dir: ${{ steps.vars.outputs.image_dir }} | ||
run: | | ||
sudo mkdir -p $image_dir | ||
sudo chown ubuntu:ubuntu $image_dir | ||
- name: Build Docker Image Cache | ||
uses: docker/build-push-action@v2 | ||
|