sync: fix: restore Midjourney MCP (#429) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - .gitignore | |
| - README.md | |
| - CHANGELOG.md | |
| - LICENSE | |
| - ".github/ISSUE_TEMPLATE/**" | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate Build Number | |
| uses: einaregilsson/build-number@v3 | |
| with: | |
| token: ${{ secrets.github_token }} | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" | |
| - name: Get Build Number | |
| run: | | |
| echo $BUILD_NUMBER | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Install Docker Compose | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install docker-compose | |
| - name: Docker Login | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set Kubectl | |
| uses: Azure/k8s-set-context@v4 | |
| with: | |
| kubeconfig: ${{ secrets.KUBE_CONFIG }} | |
| - name: Build Docker images | |
| run: docker-compose build | |
| - name: Push Docker images | |
| run: docker-compose push | |
| - name: Deploy | |
| run: sh ./deploy/run.sh |