test deployment
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3m4s

This commit is contained in:
Gregor Lohaus
2026-03-09 18:39:05 +01:00
parent edb8300ef7
commit 9332d54cf2
2 changed files with 10 additions and 2 deletions

View File

@@ -18,7 +18,15 @@ jobs:
working-directory: ${{ gitea.workspace }}/Backend working-directory: ${{ gitea.workspace }}/Backend
env: env:
JAVA_HOME: /root/.sdkman/candidates/java/current JAVA_HOME: /root/.sdkman/candidates/java/current
run: /root/.sdkman/candidates/gradle/9.4.0/bin/gradle build run: /root/.sdkman/candidates/gradle/9.4.0/bin/gradle build
- name: deploy
run: |
eval "$(ssh-agent -s)"
ssh-add <(echo "${{ secrets.DEPLOYSSHKEY }}")
scp ${{ gitea.workspace }}/Backend/build/native/nativeCompile/gtransfer anon@162.55.217.172:/home/anon/.local/bin/gtransfernew
ssh anon@162.55.217.172 "chmod +x /home/anon/.local/bin/gtransfernew"
ssh anon@162.55.217.172 "mv /home/anon/.local/bin/gtransfernew /home/anon/.local/bin/gtransfer"
ssh anon@162.55.217.172 "sudo systemctl restart gtransfer"
- name: upload binary - name: upload binary
uses: https://gitea.com/actions/gitea-upload-artifact@v4 uses: https://gitea.com/actions/gitea-upload-artifact@v4
with: with:

View File

@@ -1,6 +1,6 @@
FROM postgres:15.17-trixie FROM postgres:15.17-trixie
RUN apt update RUN apt update
RUN apt install -y curl wget zip unzip build-essential zlib1g-dev nodejs RUN apt install -y curl wget zip unzip build-essential zlib1g-dev nodejs ssh
RUN curl -s "https://get.sdkman.io?ci=true" | bash RUN curl -s "https://get.sdkman.io?ci=true" | bash
SHELL ["/bin/bash", "-c"] SHELL ["/bin/bash", "-c"]
RUN source "/root/.sdkman/bin/sdkman-init.sh" \ RUN source "/root/.sdkman/bin/sdkman-init.sh" \