HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: /volume1/web/wordpress/wp-content/plugins/brizy/.github/workflows/run-containers.yml
name: Brizy Free

on:
  push:
    branches:
      - master
      - beta-*
      - fixes-*
      - develop

jobs:
  base:
    environment: Build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: '1'
      - name: Load Build Evnrorment Data
        uses: falti/dotenv-action@master
        id: env
        with:
          path: .github/.build-env
      - name: Declare some variables
        id: vars
        shell: bash
        run: |
          echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
      - name: Intialize  the  containers
        uses: appleboy/ssh-action@master
        with:
          host: ${{ secrets.HOST }}
          username: ${{ secrets.USERNAME }}
          key: ${{ secrets.KEY }}
          port: ${{ secrets.PORT }}
          command_timeout: 200m
          passphrase: ${{ secrets.KEY_PASSPHRASE }}
          script: |
            ./BB/build/run-editor-instance.sh \
            -c ${{ steps.vars.outputs.sha_short }} \
            -v ${{ steps.env.outputs.build_environment }} \
            -f ${{ steps.env.outputs.free_branch }} \
            -p ${{ steps.env.outputs.pro_branch }} \
            -e ${{ steps.env.outputs.editor_branch }} \
            -n traefik \
            -t ${{ secrets.COMPOSER_TOKEN }}
      - name: Clean context folder
        uses: appleboy/ssh-action@master
        if: ${{ always() }}
        with:
          host: ${{ secrets.HOST }}
          username: ${{ secrets.USERNAME }}
          key: ${{ secrets.KEY }}
          port: ${{ secrets.PORT }}
          command_timeout: 200m
          passphrase: ${{ secrets.KEY_PASSPHRASE }}
          script:
            ./BB/build/clean-context-folder.sh -c ${{ steps.vars.outputs.sha_short }}