Skip to content

fix: enable optmization #6

fix: enable optmization

fix: enable optmization #6

Workflow file for this run

name: MRSK Deploy
on:
push:
branches:
- main
jobs:
Release:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/activepieces/marketing:${{ github.sha }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: SSH into remote server and deploy
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.DEV_OPS_HOST }}
username: root
key: ${{ secrets.SSH_KEY }}
script: |
cd mrsk
docker run --rm -v $HOME/.ssh:/root/.ssh -v /var/run/docker.sock:/var/run/docker.sock -v ${PWD}/:/workdir ghcr.io/mrsked/mrsk redeploy --version ${{ github.sha }} --config-file=config/marketing.yml --skip-push