This repository was archived by the owner on Apr 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.36 KB
/
release.yml
File metadata and controls
44 lines (42 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Weekly Release
# Build a fresh image every week.
on:
schedule:
- cron: 0 14 * * 1 # run at 9am eastern US time every Monday
push:
branches:
- main
workflow_dispatch: # allow manual triggering
jobs:
build_and_upload_image:
runs-on: ubuntu-latest
steps:
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
- name: Add Metadata
id: add_metadata
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64 # GitHub only offers AMD64 codespaces
pull: true
push: true
tags: ghcr.io/${{ github.repository }}:latest
annotations: ${{ steps.add_metadata.outputs.annotations }}
labels: ${{ steps.add_metadata.outputs.labels }}
provenance: mode=max
sbom: true
cache-from: type=gha
# mode=max means "cache everything possible". This ensures maximum
# use of the cache, but will use up GitHub's 10 GB cache size limit
# faster.
cache-to: type=gha,mode=max