+2
-11
@@ -7,20 +7,11 @@ steps:
|
|||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.26.3-alpine
|
image: golang:1.26.3-alpine
|
||||||
environment:
|
|
||||||
GOPRIVATE: git.teletypegames.org/*
|
|
||||||
GIT_SSH_KEY:
|
|
||||||
from_secret: git_ssh_key
|
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache zip make curl git openssh-client
|
- apk add --no-cache zip make curl git
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- echo "$GIT_SSH_KEY" > ~/.ssh/id_ed25519
|
|
||||||
- chmod 600 ~/.ssh/id_ed25519
|
|
||||||
- ssh-keyscan -p 2222 git.teletypegames.org >> ~/.ssh/known_hosts 2>/dev/null
|
|
||||||
- git config --global url."ssh://git@git.teletypegames.org:2222/".insteadOf "https://git.teletypegames.org/"
|
|
||||||
# The go.mod may point at a local ../pncdsl checkout (see README);
|
# The go.mod may point at a local ../pncdsl checkout (see README);
|
||||||
# in CI clone the framework next to the workspace so it resolves.
|
# in CI clone the framework next to the workspace so it resolves.
|
||||||
- if grep -q '=> \.\./pncdsl' go.mod; then git clone ssh://git@git.teletypegames.org:2222/games/pncdsl ../pncdsl; fi
|
- if grep -q '=> \.\./pncdsl' go.mod; then git clone https://git.teletypegames.org/games/pncdsl ../pncdsl; fi
|
||||||
- make ci-export
|
- make ci-export
|
||||||
|
|
||||||
- name: artifact
|
- name: artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user