Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0548f54168 | |||
| 3fe8de2e32 | |||
| f40dae5a03 | |||
| ab3ffbbec8 | |||
| da5c319a5b | |||
| 5e5d0c8ecf | |||
| b5e22f3ca5 |
+22
-12
@@ -19,22 +19,32 @@ jobs:
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.TEKTON_SSH_KEY }}
|
||||
|
||||
- name: Install tools
|
||||
run: apt-get update -qq && apt-get install -y -qq curl unzip
|
||||
|
||||
- name: Add Gitea SSH Host Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
printf "Host 172.18.0.1\n Port 222\n StrictHostKeyChecking no\n" > ~/.ssh/config
|
||||
ssh-keyscan -p 22 172.18.0.2 >> ~/.ssh/known_hosts || true
|
||||
# Route all possible hostnames Gitea might hand out via API back to the internal docker port 22
|
||||
printf "Host gitea\n HostName 172.18.0.2\n Port 22\n StrictHostKeyChecking no\n" > ~/.ssh/config
|
||||
printf "Host thunderobot\n HostName 172.18.0.2\n Port 22\n StrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
printf "Host thunderobot.tail5d6e8e.ts.net\n HostName 172.18.0.2\n Port 22\n StrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
|
||||
# Force checkout to rewrite port 222 down to 22
|
||||
git config --global url."ssh://git@gitea/".insteadOf "ssh://git@gitea:222/"
|
||||
git config --global url."ssh://git@gitea/".insteadOf "git@gitea:222:"
|
||||
git config --global url."ssh://git@thunderobot.tail5d6e8e.ts.net/".insteadOf "ssh://git@thunderobot.tail5d6e8e.ts.net:222/"
|
||||
git config --global url."ssh://git@thunderobot.tail5d6e8e.ts.net/".insteadOf "git@thunderobot.tail5d6e8e.ts.net:222:"
|
||||
git config --global url."ssh://git@thunderobot/".insteadOf "ssh://git@thunderobot:222/"
|
||||
git config --global url."ssh://git@thunderobot/".insteadOf "git@thunderobot:222:"
|
||||
chmod 600 ~/.ssh/config
|
||||
|
||||
- name: Checkout Code
|
||||
run: |
|
||||
git clone ssh://git@172.18.0.1:222/danchie/tekton.git .
|
||||
git checkout $TAG_NAME
|
||||
|
||||
- name: Install tools
|
||||
run: apt-get update -qq && apt-get install -y -qq docker.io curl unzip
|
||||
|
||||
- name: Connect job container to gitea_default network
|
||||
run: docker network connect gitea_default $(hostname)
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: danchie/tekton
|
||||
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
||||
|
||||
- name: Setup Godot (Cached)
|
||||
run: |
|
||||
@@ -67,13 +77,13 @@ jobs:
|
||||
run: |
|
||||
mkdir -p build/windows
|
||||
cp addons/godotsteam/libgodotsteam* build/windows/ 2>/dev/null || true
|
||||
godot --headless --export-release "Windows Desktop" build/windows/tekton_armageddon_windows_${TAG_NAME}.zip 2>&1 | tail -5
|
||||
godot --headless --export-release "Windows Desktop" build/windows/tekton_armageddon_windows.exe || true
|
||||
cd build/windows && zip -r ../tekton_armageddon_windows_${TAG_NAME}.zip .
|
||||
|
||||
- name: Export Linux
|
||||
run: |
|
||||
mkdir -p build/linux
|
||||
godot --headless --export-release "Linux/X11" build/linux/tekton_armageddon_linux_${TAG_NAME}.zip 2>&1 | tail -5
|
||||
godot --headless --export-release "Linux/X11" build/linux/tekton_armageddon_linux.x86_64 || true
|
||||
cd build/linux && zip -r ../tekton_armageddon_linux_${TAG_NAME}.zip .
|
||||
|
||||
- name: Export macOS
|
||||
|
||||
Reference in New Issue
Block a user