Skip to content

Commit

Permalink
CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
StenAL committed Jul 1, 2024
1 parent 6ff5624 commit d72dd69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/client-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

publish:
needs: build
if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: checkout current repository
Expand Down Expand Up @@ -73,6 +73,7 @@ jobs:
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
protocol: tcp6
source: "client/build/**"
target: "/var/www/stonks"
strip_components: 2
5 changes: 3 additions & 2 deletions .github/workflows/server-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
build-root-directory: server

- name: create server artifact from jar
if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: server
path: server/build

publish:
needs: build
if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: checkout current repository
Expand Down Expand Up @@ -91,6 +91,7 @@ jobs:
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
protocol: tcp6
script: |
docker compose pull
docker compose up -d

0 comments on commit d72dd69

Please sign in to comment.