File tree Expand file tree Collapse file tree
.github/actions/setup-gear Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22name : Setup gear
33description : Setup gear
44inputs :
5- devenv :
6- description : Env name
7- required : true
85 token :
96 description : Github token
107 required : true
118runs :
129 using : " composite"
1310 steps :
14- - shell : bash
15- run : |
16- cat /etc/docker/daemon.json | jq '. + {"userns-remap": "runner"}' | sudo tee /etc/docker/daemon.json
17- sudo sed -i -e "1i runner:$(getent group docker | cut -d: -f3):1" /etc/subgid
18- sudo sed -i -e "1i runner:$(id -u):1" /etc/subuid
19- sudo systemctl restart docker
20- docker network create gear
21- - uses : docker/setup-buildx-action@v3.12.0
22- - uses : docker/login-action@v3.1.0
23- with :
24- registry : ghcr.io
25- username : ${{ github.actor }}
26- password : ${{ inputs.token }}
2711 - uses : actions/setup-go@v6.2.0
2812 with :
2913 go-version : ' 1.25'
You can’t perform that action at this time.
0 commit comments