updates workflow
This commit is contained in:
parent
3ea95eade3
commit
6bcca8eb78
1 changed files with 13 additions and 15 deletions
28
.github/workflows/deploy.yml
vendored
28
.github/workflows/deploy.yml
vendored
|
|
@ -32,18 +32,16 @@ jobs:
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v3
|
||||||
uses: actions/checkout@v3
|
- uses: astappiev/docker-compose-remote-action@master
|
||||||
|
name: Docker-Compose Remote Deployment
|
||||||
- name: Deploy to target server
|
with:
|
||||||
env:
|
ssh_host: ${{ secrets.DEPLOY_HOST }}
|
||||||
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
ssh_user: ${{ secrets.DEPLOY_USER }}
|
||||||
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
|
ssh_private_key: ${{ secrets.DEPLOY_KEY }}
|
||||||
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
ssh_host_public_key: ${{ secrets.DEPLOY_PUBLIC_KEY }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
docker_compose_prefix: skyjo-fe
|
||||||
run: |
|
workspace: ~/deployments/voltvector-be
|
||||||
echo "$DEPLOY_KEY" > deploy_key.pem
|
container_registry: ghcr.io
|
||||||
chmod 600 deploy_key.pem
|
container_registry_username: ${{ github.actor }}
|
||||||
scp -i deploy_key.pem -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null .github/scripts/deploy.sh $DEPLOY_USER@$DEPLOY_HOST:/tmp/
|
container_registry_password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
|
||||||
ssh -i deploy_key.pem -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $DEPLOY_USER@$DEPLOY_HOST "GITHUB_TOKEN=$GITHUB_TOKEN bash -s" < /tmp/deploy.sh
|
|
||||||
rm -f deploy_key.pem
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue