Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Docker Image

on:
push:
branches: [ master, main ]
paths:
- 'Dockerfile'
- '.github/workflows/docker.yml'
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'build.rs'
pull_request:
branches: [ master, main ]
paths:
- 'Dockerfile'
- '.github/workflows/docker.yml'
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'build.rs'
workflow_dispatch:

env:
IMAGE_NAME: queueber

jobs:
build:
name: Build multi-arch image
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build (no push)
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: false
tags: |
${{ github.repository }}:${{ github.sha }}
build-args: |
RUST_TOOLCHAIN=nightly
cache-from: type=gha
cache-to: type=gha,mode=max

2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
- [ ] (productionize) admin operations: safe drain, purge, and stats endpoints
- [ ] (productionize) abstract a mockable clock for leases/visibility to enable deterministic tests
- [X] (productionize) release profile tuning: LTO, codegen-units, panic=abort (if acceptable), symbol levels
- [ ] (productionize) packaging: Dockerfile (non-root, minimal base, HEALTHCHECK), multi-arch builds
- [X] (productionize) packaging: Dockerfile (non-root, minimal base, HEALTHCHECK), multi-arch builds
- [ ] (productionize) Kubernetes/Helm: liveness/readiness probes, resource limits/requests, PDB, PV, ConfigMap-based configuration
- [ ] (productionize) systemd unit: restart policy, sandboxing, rlimits, service user/group
- [ ] (productionize) repository hygiene: add LICENSE and CONTRIBUTING.md
Expand Down
Loading