fix(deps): update dependency recharts to v3.4.0 #241
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: Docker Builds | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v*.*.*" | |
| paths: | |
| - "src/**" | |
| - "Dockerfile" | |
| - "package.json" | |
| - "package-lock.json" | |
| - "nginx.conf" | |
| - "__posts" | |
| - "__books" | |
| schedule: | |
| - cron: "0 03 * * 1-5" | |
| permissions: | |
| contents: read | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| packages: write | |
| steps: | |
| - name: 🛡️ Harden the runner | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| egress-policy: audit | |
| - name: 📦 Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: 🔑 Log in to GitHub Container Registry | |
| uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: 🏷️ Get package version | |
| id: get_package_version | |
| run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT | |
| - name: 🔍 Check if version is SNAPSHOT | |
| id: check_snapshot | |
| run: | | |
| VERSION="${{ steps.get_package_version.outputs.VERSION }}" | |
| if [[ "$VERSION" == *"-SNAPSHOT"* ]]; then | |
| echo "IS_SNAPSHOT=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "IS_SNAPSHOT=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: 🐳 Build Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| tags: | | |
| type=raw,value=${{ steps.get_package_version.outputs.VERSION }} | |
| type=raw,value=latest,enable=${{ steps.check_snapshot.outputs.IS_SNAPSHOT == 'false' }} | |
| - name: 🏗️ Build and push production image | |
| uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |