ci: mount runner .ssh into container
This commit is contained in:
parent
383d14e155
commit
3e5bd6ec88
1 changed files with 5 additions and 9 deletions
|
|
@ -8,20 +8,16 @@ on:
|
|||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: golang:1.27
|
||||
volumes:
|
||||
- /root/.ssh:/root/.ssh:ro
|
||||
|
||||
steps:
|
||||
- name: Install Go and packaging tools
|
||||
- name: Install packaging tools
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y dpkg-dev git curl openssh-client
|
||||
# Install Go if not present (works on Debian/Ubuntu runners)
|
||||
if ! command -v go &> /dev/null; then
|
||||
GO_VERSION=1.27.1
|
||||
curl -sL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar -C /usr/local -xz
|
||||
export PATH="/usr/local/go/bin:${PATH}"
|
||||
echo "PATH=${PATH}" >> "$GITHUB_ENV"
|
||||
fi
|
||||
go version
|
||||
|
||||
- name: Setup SSH
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue