Files
anubis-mirror/.github/workflows/docker-pr.yml
Xe Iaso b2b7183a8f chore: set up docker buildx bake
Closes #417
Closes #584
Closes #658
Closes #630

Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-08-29 20:15:38 +00:00

38 lines
936 B
YAML

name: Docker image builds (pull requests)
on:
pull_request:
branches: ["main"]
env:
DOCKER_METADATA_SET_OUTPUT_ENV: "true"
permissions:
contents: read
jobs:
buildx-bake:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-tags: true
fetch-depth: 0
persist-credentials: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
- name: Build and push
id: build
uses: docker/bake-action@76f9fa3a758507623da19f6092dc4089a7e61592 # v6.6.0
with:
source: .
push: true
sbom: true
cache-from: type=gha
cache-to: type=gha,mode=max
set: |
anubis.tags=ttl.sh/techaro/pr-${{ github.event.number }}/anubis:24h