add: subtle donate QR in newsletter footer #55
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 | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| workflow_dispatch: | |
| concurrency: | |
| group: docker-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| # --------------------------------------------------------------------------- | |
| # Lint every Dockerfile with hadolint | |
| # --------------------------------------------------------------------------- | |
| hadolint: | |
| name: Hadolint (${{ matrix.dockerfile }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| dockerfile: | |
| - Dockerfile | |
| - server/api/Dockerfile | |
| - docker/zebra/Dockerfile | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install latest hadolint | |
| run: | | |
| curl -fsSL -o /usr/local/bin/hadolint \ | |
| https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64 | |
| chmod +x /usr/local/bin/hadolint | |
| hadolint --version | |
| - name: Lint ${{ matrix.dockerfile }} | |
| run: hadolint --config .hadolint.yaml "${{ matrix.dockerfile }}" | |
| # --------------------------------------------------------------------------- | |
| # Build the application images (web + api). No push. | |
| # --------------------------------------------------------------------------- | |
| build: | |
| name: Build image (${{ matrix.name }}) | |
| runs-on: ubuntu-latest | |
| needs: hadolint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: web | |
| context: . | |
| dockerfile: Dockerfile | |
| - name: api | |
| context: server/api | |
| dockerfile: server/api/Dockerfile | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: docker/setup-buildx-action@v4 | |
| - name: Build ${{ matrix.name }} image | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: ${{ matrix.context }} | |
| file: ${{ matrix.dockerfile }} | |
| push: false | |
| load: true | |
| tags: cipherscan-${{ matrix.name }}:ci | |
| build-args: | | |
| GIT_COMMIT=${{ github.sha }} | |
| cache-from: type=gha,scope=${{ matrix.name }} | |
| cache-to: type=gha,scope=${{ matrix.name }},mode=max |