Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy OpenDK with Ansible

on:
release:
types: [published]

jobs:
deploy:
name: Deploy to Production Server
runs-on: ubuntu-latest

steps:
- name: Checkout Ansible Code
uses: actions/checkout@v3

- name: Deploy via SSH using appleboy/ssh-action
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.CICD_SERVER_IP }}
username: ${{ secrets.CICD_SERVER_USER }}
key: ${{ secrets.CICD_SERVER_PRIVATE_KEY }}
port: ${{ secrets.CICD_SERVER_IP_PORT }}
script: |
cd /opt/ansible
ansible-playbook -i inventories/production/inventory.yml playbooks/deploy-opendk.yml
Loading