fix: retroactive placeholder filter evaluation (#522) #233
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: Agregarr Develop | |
| on: | |
| pull_request: | |
| branches: | |
| - '*' | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| test: | |
| name: Lint & Test Build | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-22.04 | |
| container: node:20.19.5-alpine | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| apk add --no-cache \ | |
| python3 make g++ gcc libc6-compat bash \ | |
| build-base cairo-dev pango-dev jpeg-dev giflib-dev pixman-dev | |
| - name: Install dependencies | |
| env: | |
| HUSKY: 0 | |
| run: yarn | |
| - name: Lint | |
| run: yarn lint | |
| - name: Type Check | |
| run: yarn typecheck | |
| - name: Formatting | |
| run: npx prettier --check . | |
| - name: Build | |
| run: yarn build | |
| build_and_push: | |
| name: Build & Publish Docker Images | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Free disk space | |
| run: | | |
| echo "Before cleanup:" | |
| df -h / | |
| sudo rm -rf /usr/share/dotnet /opt/ghcrunner /usr/local/lib/android /usr/share/swift | |
| echo "After cleanup:" | |
| df -h / | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build and push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| platforms: linux/amd64 | |
| push: true | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| build-args: | | |
| COMMIT_TAG=${{ github.sha }} | |
| tags: | | |
| bitr8/agregarr:develop | |
| bitr8/agregarr:latest |