diff --git a/.github/workflows/oblf-admin-deployment.yaml b/.github/workflows/oblf-admin-deployment.yaml new file mode 100644 index 00000000..d40cabf7 --- /dev/null +++ b/.github/workflows/oblf-admin-deployment.yaml @@ -0,0 +1,25 @@ +name: Deployment on the OBLF admin Server +on: + push: + branches: + - main +jobs: + OBLF-ADMIN-DEPLOYMENT: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Deploy Stack + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST_NAME_OBLF }} + username: ${{ secrets.USERNAME_OBLF }} + key: ${{ secrets.EC2_SSH_KEY_OBLF }} + port: ${{ secrets.PORT_OBLF }} + script: | + cd ${{ secrets.TARGET_DIR_OBLF }} + if [ -f .env ]; then + rm .env + fi + echo "${{ secrets.OBLF_ENV }}" > .env + ls -ltra + ./deploy.sh