diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 649f49dbf..ad892d9f5 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -17,7 +17,7 @@ on: jobs: deploy: - environment: ${{ environment }} + environment: ${{ inputs.environment }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -38,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: ${{ remote_host }} + REMOTE_HOST: ${{ inputs.remote_host }} REMOTE_USER: ${{ secrets.REMOTE_USER }} TARGET: ~/ - name: executing remote ssh commands using ssh key uses: appleboy/ssh-action@master with: - host: ${{ remote_host }} + host: ${{ inputs.remote_host }} username: ${{ secrets.REMOTE_USER }} key: ${{ secrets.SSH_PRIVATE_KEY }} script: |