Skip to content

add: subtle donate QR in newsletter footer #55

add: subtle donate QR in newsletter footer

add: subtle donate QR in newsletter footer #55

Workflow file for this run

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