Skip to content

πŸ’Ž Deploy yv-PRODUCTION #161

πŸ’Ž Deploy yv-PRODUCTION

πŸ’Ž Deploy yv-PRODUCTION #161

name: πŸ’Ž Deploy yv-PRODUCTION
on:
workflow_dispatch:
inputs:
docker_image_tag:
description: Docker image tag
required: true
default: latest
workflow_run:
workflows: ["β˜ƒ Build & publish docker image"]
types:
- completed
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Deploy to yv-production
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.YV_PRODUCTION_HOST }}
username: ${{ secrets.YV_PRODUCTION_USERNAME }}
key: ${{ secrets.YV_PRODUCTION_KEY }}
port: ${{ secrets.YV_PRODUCTION_PORT }}
script: curl "https://raw.githubusercontent.com/yearn/yearn-exporter/master/deploy.sh" -o deploy.sh && chmod +x deploy.sh && ./deploy.sh "${{ github.event.inputs.docker_image_tag }}" "$HOME/.env" "up" "https://yearn.vision"