From 21863619789f730a3919f92d58887fbd3bb63950 Mon Sep 17 00:00:00 2001 From: Mohammad AbuAboud Date: Sat, 30 Sep 2023 17:44:09 +0300 Subject: [PATCH] deploy: mrsk --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/fly.yml | 15 --------------- 2 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/fly.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..5879090 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +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 }} diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml deleted file mode 100644 index c2caa68..0000000 --- a/.github/workflows/fly.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Fly Deploy -on: - push: - branches: - - main -jobs: - deploy: - name: Deploy app - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: superfly/flyctl-actions/setup-flyctl@master - - run: flyctl deploy --remote-only - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}