ci: mount runner .ssh into container
Some checks failed
Release / release (push) Failing after 6s

This commit is contained in:
SW 2026-09-10 13:10:22 +02:00
parent 383d14e155
commit 3643430798

View file

@ -8,20 +8,16 @@ on:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: golang:1.27
volumes:
- /root/.ssh:/root/.ssh:ro
steps: steps:
- name: Install Go and packaging tools - name: Install packaging tools
run: | run: |
apt-get update apt-get update
apt-get install -y dpkg-dev git curl openssh-client 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 - name: Setup SSH
run: | run: |