Repository navigation
Deploy core service #23
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 core service | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the code | |
| uses: actions/checkout@v4 | |
| - name: Cache pnpm store | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.pnpm-store | |
| key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm- | |
| - name: Install Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '24.5.0' | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: Install pnpm dependencies | |
| run: pnpm install | |
| working-directory: ./services/core/packages/webclient/ | |
| - name: Build web app | |
| run: pnpm run build | |
| working-directory: ./services/core/packages/webclient/ | |
| - name: Copy website files | |
| run: | | |
| chmod +x copy-website-files.sh | |
| ./copy-website-files.sh | |
| working-directory: ./scripts/ | |
| - name: Build Docker image | |
| run: docker build -t oliverschlueter/fancyspaces:latest -f services/core/Dockerfile . | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Push Docker image | |
| run: docker push oliverschlueter/fancyspaces:latest |