Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bf9ae51702 | |||
| 7a02eee277 | |||
| d6daed62b8 | |||
| 0548f54168 | |||
| 3fe8de2e32 | |||
| f40dae5a03 | |||
| ab3ffbbec8 | |||
| da5c319a5b | |||
| 5e5d0c8ecf | |||
| b5e22f3ca5 | |||
| 8abf07a0d4 | |||
| 350ae269f2 | |||
| e8604e2c02 | |||
| c9995f8578 | |||
| 4aa765c502 | |||
| 1d653bb7d0 |
+25
-14
@@ -19,23 +19,34 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.TEKTON_SSH_KEY }}
|
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
|
- name: Add Gitea SSH Host Key
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
ssh-keyscan -p 222 100.93.226.13 >> ~/.ssh/known_hosts
|
ssh-keyscan -p 22 172.18.0.2 >> ~/.ssh/known_hosts || true
|
||||||
sed -i 's/100.93.226.13/thunderobot/g' ~/.ssh/known_hosts
|
# 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
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
# Use manual clone because actions/checkout overrides SSH settings and drops our Host aliases
|
||||||
repository: danchie/tekton
|
eval "$(ssh-agent -s)"
|
||||||
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
ssh-add <(echo "${{ secrets.TEKTON_SSH_KEY }}")
|
||||||
|
git clone ssh://git@gitea/danchie/tekton.git .
|
||||||
- name: Install tools
|
git checkout $TAG_NAME
|
||||||
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)
|
|
||||||
|
|
||||||
- name: Setup Godot (Cached)
|
- name: Setup Godot (Cached)
|
||||||
run: |
|
run: |
|
||||||
@@ -68,13 +79,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p build/windows
|
mkdir -p build/windows
|
||||||
cp addons/godotsteam/libgodotsteam* build/windows/ 2>/dev/null || true
|
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 .
|
cd build/windows && zip -r ../tekton_armageddon_windows_${TAG_NAME}.zip .
|
||||||
|
|
||||||
- name: Export Linux
|
- name: Export Linux
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build/linux
|
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 .
|
cd build/linux && zip -r ../tekton_armageddon_linux_${TAG_NAME}.zip .
|
||||||
|
|
||||||
- name: Export macOS
|
- name: Export macOS
|
||||||
|
|||||||
Reference in New Issue
Block a user