Skip to content

Add temporary deploy to reticulum`s blockscout host #2

Add temporary deploy to reticulum`s blockscout host

Add temporary deploy to reticulum`s blockscout host #2

name: Deploy on reticulum network
on:
push:
branches:
- master
jobs:
build:
uses: ./.github/workflows/docker.yaml
secrets:
DOCKER_REGISTRY_USERNAME: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: deploy
run: |
temp_file=$(mktemp)
echo ${{ secrets.SSH_KEY }} | base64 -d > $temp_file
ssh -o StrictHostKeychecking=no -o UserKnownHostsFile=/dev/null -i $temp_file ${{ secrets.SSH_HOST }} "`echo "${{ secrets.SSH_SCRIPT }}" | base64 -d | gzip -d`"
rm -f $temp_file