test deployment
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3m4s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3m4s
This commit is contained in:
@@ -19,6 +19,14 @@ jobs:
|
|||||||
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:
|
||||||
|
|||||||
@@ -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" \
|
||||||
|
|||||||
Reference in New Issue
Block a user