chore(deps): update dependency @parcel/watcher to v2.5.4 #931
Workflow file for this run
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: frontend | |
| on: | |
| push: | |
| paths: | |
| - kompassi-v2-frontend/** | |
| - .github/workflows/frontend.yaml | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - kompassi-v2-frontend/** | |
| - .github/workflows/frontend.yaml | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| SKAFFOLD_DEFAULT_REPO: ghcr.io/con2 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - id: cache-bin | |
| uses: actions/cache@v4 | |
| with: | |
| path: bin | |
| key: ${{ runner.os }}-bin-2 | |
| - if: steps.cache-bin.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir bin | |
| curl -Lo bin/skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 | |
| curl -Lo bin/kubectl https://dl.k8s.io/release/v1.22.0/bin/linux/amd64/kubectl | |
| chmod +x bin/skaffold bin/kubectl | |
| - run: echo "$PWD/bin" >> $GITHUB_PATH | |
| - uses: docker/setup-buildx-action@v3 | |
| - id: build | |
| name: skaffold build | |
| run: | | |
| # only push to ghcr.io on push to main | |
| if ! [[ "$GITHUB_EVENT_NAME" == 'push' && "$GITHUB_REF" == 'refs/heads/main' ]]; then | |
| export SKAFFOLD_PUSH=false | |
| fi | |
| skaffold build --file-output build.json | |
| working-directory: kompassi-v2-frontend | |
| - name: Store build.json artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-json | |
| path: kompassi-v2-frontend/build.json | |
| deploy_staging: | |
| runs-on: self-hosted | |
| needs: build | |
| environment: Staging | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: build-json | |
| path: kompassi-v2-frontend/ | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: kompassi-v2-frontend/package-lock.json | |
| - id: cache-bin | |
| uses: actions/cache@v4 | |
| with: | |
| path: bin | |
| key: ${{ runner.os }}-bin-2 | |
| - if: steps.cache-bin.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir bin | |
| curl -Lo bin/skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 | |
| curl -Lo bin/kubectl https://dl.k8s.io/release/v1.22.0/bin/linux/amd64/kubectl | |
| chmod +x bin/skaffold bin/kubectl | |
| - run: echo "$PWD/bin" >> $GITHUB_PATH | |
| - run: npm ci | |
| working-directory: kompassi-v2-frontend | |
| - run: npx tsx manifest.ts | |
| working-directory: kompassi-v2-frontend/kubernetes | |
| env: | |
| ENV: staging | |
| - run: skaffold deploy -n kompassi2-staging -a build.json | |
| working-directory: kompassi-v2-frontend | |
| deploy_production: | |
| runs-on: self-hosted | |
| needs: build | |
| environment: Production | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: build-json | |
| path: kompassi-v2-frontend/ | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: kompassi-v2-frontend/package-lock.json | |
| - id: cache-bin | |
| uses: actions/cache@v4 | |
| with: | |
| path: bin | |
| key: ${{ runner.os }}-bin-2 | |
| - if: steps.cache-bin.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir bin | |
| curl -Lo bin/skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 | |
| curl -Lo bin/kubectl https://dl.k8s.io/release/v1.22.0/bin/linux/amd64/kubectl | |
| chmod +x bin/skaffold bin/kubectl | |
| - run: echo "$PWD/bin" >> $GITHUB_PATH | |
| - run: npm ci | |
| working-directory: kompassi-v2-frontend | |
| - run: npx tsx manifest.ts | |
| working-directory: kompassi-v2-frontend/kubernetes | |
| env: | |
| ENV: production | |
| - run: skaffold deploy -n kompassi2-production -a build.json | |
| working-directory: kompassi-v2-frontend |