Skip to content

Commit

Permalink
build: Drop SSH logic from CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
pojntfx committed Jun 28, 2024
1 parent 2a84ce9 commit b928150
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions Hydrunfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,8 @@ set -e

# Test
if [ "$1" = "test" ]; then
# Configure SSH access
eval "$(ssh-agent -s)"
ssh-add /tmp/ssh-key
mkdir -p ~/.ssh
ssh-keyscan github.com >>~/.ssh/known_hosts

# Configure Git
git config --global --add safe.directory '*'
git config --global url."ssh://git@github.com/".insteadOf "https://github.com/"

# Generate dependencies
make depend
Expand All @@ -25,12 +18,6 @@ fi

# Go
if [ "$1" = "go" ]; then
# Configure SSH access
eval "$(ssh-agent -s)"
ssh-add /tmp/ssh-key
mkdir -p ~/.ssh
ssh-keyscan github.com >>~/.ssh/known_hosts

# Install native dependencies
apt update
apt install -y curl make
Expand All @@ -41,7 +28,6 @@ if [ "$1" = "go" ]; then

# Configure Git
git config --global --add safe.directory '*'
git config --global url."ssh://git@github.com/".insteadOf "https://github.com/"

# Generate dependencies
make depend
Expand All @@ -58,15 +44,8 @@ if [ "$1" = "os" ]; then
dnf group install -y "C Development Tools and Libraries" "Development Tools"
dnf install -y go curl make file cpio unzip rsync bc openssh-clients which wget perl

# Configure SSH access
eval "$(ssh-agent -s)"
ssh-add /tmp/ssh-key
mkdir -p ~/.ssh
ssh-keyscan github.com >>~/.ssh/known_hosts

# Configure Git
git config --global --add safe.directory '*'
git config --global url."ssh://git@github.com/".insteadOf "https://github.com/"

# Generate dependencies for packager
make depend
Expand Down Expand Up @@ -105,15 +84,8 @@ if [ "$1" = "oci" ]; then
dnf copr enable -y ganto/umoci
dnf install -y golang-github-opencontainers-umoci

# Configure SSH access
eval "$(ssh-agent -s)"
ssh-add /tmp/ssh-key
mkdir -p ~/.ssh
ssh-keyscan github.com >>~/.ssh/known_hosts

# Configure Git
git config --global --add safe.directory '*'
git config --global url."ssh://git@github.com/".insteadOf "https://github.com/"

# Generate dependencies for packager
make depend
Expand Down

0 comments on commit b928150

Please sign in to comment.