Skip to content

Commit

Permalink
CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
StenAL committed Jul 7, 2024
1 parent f75231d commit 984ed06
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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
11 changes: 8 additions & 3 deletions .github/workflows/server-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,22 @@ 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: set up WARP (workaround for IPv6 on GitHub Actions)
uses: fscarmen/warp-on-actions@v1.1
with:
stack: ipv6

- name: checkout current repository
uses: actions/checkout@v4

Expand Down Expand Up @@ -81,7 +86,7 @@ jobs:
touch /home/runner/.ssh/id_rsa
echo -e "${{secrets.SSH_KEY}}" > /home/runner/.ssh/id_rsa
chmod 700 /home/runner/.ssh/id_rsa
ssh-keyscan -t rsa,dsa,ecdsa,ed25519 ${{secrets.SSH_HOST}} >> /home/runner/.ssh/known_hosts
ssh-keyscan -t rsa,dsa,ecdsa,ed25519 ${{ secrets.SSH_HOST }} >> /home/runner/.ssh/known_hosts
- name: run Ansible deployment playbook
shell: bash
Expand Down

0 comments on commit 984ed06

Please sign in to comment.