Skip to content

Commit 8df0ffe

Browse files
committed
test9
1 parent 4949a60 commit 8df0ffe

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

.github/workflows/docker-export.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,46 @@
11
name: Build and Push Docker Image
2-
2+
# test
33
on:
44
push:
55

66
jobs:
77
build-and-push:
88
runs-on: self-hosted
9+
container:
10+
image: ubuntu:22.04
11+
options: --privileged -v /var/run/docker.sock:/var/run/docker.sock
12+
913
steps:
14+
- name: Install Docker CLI and Buildx
15+
run: |
16+
# Prevent apt from getting stuck on interactive prompts
17+
export DEBIAN_FRONTEND=noninteractive
18+
19+
apt update
20+
# Installing apt-utils first helps avoid "debconf: delaying package configuration" issues
21+
apt install -y --no-install-recommends apt-utils
22+
23+
# Install Docker + other deps
24+
apt install -y --no-install-recommends docker.io curl git ca-certificates
25+
26+
# Manually update CA if needed
27+
update-ca-certificates || true
28+
29+
# Add Buildx
30+
mkdir -p ~/.docker/cli-plugins
31+
# Add timeouts + verbose so you know if curl is hanging
32+
curl -sSL --connect-timeout 30 --max-time 300 -v \
33+
https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-arm64 \
34+
-o ~/.docker/cli-plugins/docker-buildx
35+
36+
chmod +x ~/.docker/cli-plugins/docker-buildx
37+
38+
# Optional: show Docker versions
39+
docker --version
40+
docker buildx version
41+
42+
43+
1044
- name: Check out repository
1145
uses: actions/checkout@v3
1246

@@ -21,6 +55,10 @@ jobs:
2155
username: ${{ github.actor }}
2256
password: ${{ secrets.GITHUB_TOKEN }}
2357

58+
- name: whereami
59+
run: |
60+
ls -la
61+
2462
- name: Init submodules and set TERM
2563
run: |
2664
git submodule update --init --recursive

0 commit comments

Comments
 (0)