Desktop v0.1.4: fix dead tray click, template icon, and first-run win… #141
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 Cloud | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: Dockerfile.cloud | |
| push: true | |
| tags: | | |
| ghcr.io/ericflo/modelrelay/modelrelay-cloud:latest | |
| ghcr.io/ericflo/modelrelay/modelrelay-cloud:${{ github.sha }} | |
| - uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: Dockerfile | |
| push: true | |
| tags: | | |
| ghcr.io/ericflo/modelrelay/modelrelay-server:latest | |
| ghcr.io/ericflo/modelrelay/modelrelay-server:${{ github.sha }} | |
| deploy: | |
| needs: build-and-push | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup kubectl | |
| run: | | |
| mkdir -p $HOME/.kube | |
| echo "${{ secrets.KUBECONFIG }}" | base64 -d > $HOME/.kube/config | |
| chmod 600 $HOME/.kube/config | |
| - name: Apply manifests | |
| run: | | |
| kubectl apply -f deploy/modelrelay-io/namespace.yaml | |
| kubectl apply -f deploy/modelrelay-io/postgres-pvc.yaml | |
| kubectl apply -f deploy/modelrelay-io/postgres-deployment.yaml | |
| kubectl apply -f deploy/modelrelay-io/postgres-service.yaml | |
| kubectl apply -f deploy/modelrelay-io/cloud-deployment.yaml | |
| kubectl apply -f deploy/modelrelay-io/cloud-service.yaml | |
| kubectl apply -f deploy/modelrelay-io/cloud-ingress.yaml | |
| kubectl apply -f deploy/modelrelay-io/server-deployment.yaml | |
| kubectl apply -f deploy/modelrelay-io/server-service.yaml | |
| kubectl apply -f deploy/modelrelay-io/server-ingress.yaml | |
| - name: Restart and wait | |
| run: | | |
| kubectl rollout restart deployment/cloud -n modelrelay | |
| kubectl rollout status deployment/cloud -n modelrelay --timeout=300s | |
| kubectl rollout restart deployment/server -n modelrelay | |
| kubectl rollout status deployment/server -n modelrelay --timeout=300s |