File tree Expand file tree Collapse file tree 1 file changed +39
-1
lines changed
Expand file tree Collapse file tree 1 file changed +39
-1
lines changed Original file line number Diff line number Diff line change 11name : Build and Push Docker Image
2-
2+ # test
33on :
44 push :
55
66jobs :
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
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
You can’t perform that action at this time.
0 commit comments