Skip to content

add corporatepockit page #218

add corporatepockit page

add corporatepockit page #218

Workflow file for this run

name: Build & Deploy Dragd
on:
push:
branches:
- "main"
jobs:
lazy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and export
uses: docker/build-push-action@v4
with:
context: .
tags: dragd:latest
secrets: |
"BASE_SITE=index"
"MONGO_STRING=${{ secrets.MONGO_CONNECTION_STRING }}"
outputs: type=docker,dest=./dragd.tar
- name: Upload docker file to server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST_2 }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
source: "./dragd.tar"
target: "/root"
- name: Deploy Dragd v2
uses: appleboy/[email protected]
with:
host: ${{secrets.SSH_HOST_2}}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
docker load < dragd.tar
docker stop dragd
docker rm dragd
docker run --net="host" -d --name="dragd" dragd
docker system prune -f