Skip to content

Commit fc95ed5

Browse files
committed
fix harbor
1 parent 9cada04 commit fc95ed5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/harbor-sample-ai-backend-publish-image.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,22 @@ jobs:
1313
echo "TIMESTAMP=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
1414
- name: Checkout code
1515
uses: actions/checkout@v4
16-
- name: Install iptables
16+
- name: Install tools
1717
run: |
18-
sudo apt-get update
19-
sudo apt-get install -y iptables
18+
apt update
19+
echo "Installing sudo ------"
20+
apt install sudo
21+
echo "Installing Iptables ------"
22+
apt -y install iptables
23+
echo "Installing fuse-overlayfs ------"
24+
apt -y install fuse-overlayfs
25+
echo "Installing modprobe ------"
26+
apt -y install kmod
2027
- name: Set up Docker
2128
uses: docker/setup-docker-action@v4
2229
with:
2330
version: "27.5.1"
31+
rootless: true
2432
- name: Login to Harbor
2533
uses: docker/login-action@v2
2634
with:

0 commit comments

Comments
 (0)