add publish frontend
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions-2 (pull_request) Successful in 3s
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (pull_request) Successful in 11s
checks / Set up Java for Backend Tests and Build (pull_request) Successful in 13s
checks / Set up Java for Backend Tests and Build (push) Has been cancelled
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Has been cancelled
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions-2 (pull_request) Successful in 3s
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (pull_request) Successful in 11s
checks / Set up Java for Backend Tests and Build (pull_request) Successful in 13s
checks / Set up Java for Backend Tests and Build (push) Has been cancelled
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Has been cancelled
This commit is contained in:
@ -72,4 +72,39 @@ jobs:
|
||||
yarn -v
|
||||
|
||||
- name: Done
|
||||
run: echo "Workflow finished."
|
||||
run: echo "Workflow finished."
|
||||
|
||||
#blish-backend-docker-image:
|
||||
#name: Build and publish backend Docker image to server
|
||||
#runs-on: ubuntu-latest
|
||||
#needs: backend-jobs
|
||||
#steps:
|
||||
# - name: Checkout repository
|
||||
# uses: actions/checkout@v4
|
||||
#
|
||||
# - name: Set up Docker
|
||||
# run: |
|
||||
# apt-get update -y
|
||||
# apt-get install -y docker.io
|
||||
#
|
||||
# - name: Build Docker image
|
||||
# run: |
|
||||
# docker build -t backend-app:latest .
|
||||
#
|
||||
# - name: Save Docker image as tarball
|
||||
# run: docker save backend-app:latest -o backend-app.tar
|
||||
#
|
||||
# - name: Copy Docker image to remote server and load it
|
||||
# env:
|
||||
# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
# SERVER_IP: <ip>
|
||||
# run: |
|
||||
# mkdir -p ~/.ssh
|
||||
# echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
# chmod 600 ~/.ssh/id_rsa
|
||||
# scp -o StrictHostKeyChecking=no backend-app.tar root@$SERVER_IP:/tmp/backend-app.tar
|
||||
# ssh -o StrictHostKeyChecking=no root@$SERVER_IP "
|
||||
# docker load -i /tmp/backend-app.tar &&
|
||||
# docker tag backend-app:latest backend-app:latest &&
|
||||
# echo 'Backend Docker image loaded successfully'
|
||||
# "
|
||||
|
||||
Reference in New Issue
Block a user