Skip to content

Commit

Permalink
remote_host
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Feb 9, 2023
1 parent 472ffc1 commit 7d487e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ jobs:
uses: './.github/workflows/deployment.yml'
with:
environment: staging
remote_host: staging.atomicdata.dev
secrets: inherit
10 changes: 6 additions & 4 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ on:
environment:
required: true
type: string
secrets:
REMOTE_HOST:
remote_host:
required: true
type: string
secrets:
REMOTE_USER:
required: true
SSH_PRIVATE_KEY:
required: true

jobs:
deploy:
environment: ${{ environment }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -36,13 +38,13 @@ jobs:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rltgoDzvO"
SOURCE: "target/x86_64-unknown-linux-musl/release/atomic-server"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_HOST: ${{ remote_host }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ~/
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
host: ${{ remote_host }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
Expand Down

0 comments on commit 7d487e8

Please sign in to comment.