π Deploy yv-PRODUCTION #183
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |