File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Nightly container build
2+
3+ on :
4+ schedule :
5+ - cron : " 0 0 * * *"
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+
11+ env :
12+ REGISTRY : ghcr.io
13+ IMAGE_NAME : headlamp-k8s/headlamp
14+
15+ jobs :
16+ push_to_registry :
17+ name : Build and push nightly container image
18+ runs-on : ubuntu-latest
19+ permissions :
20+ packages : write
21+ steps :
22+ - name : Check out the repo
23+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24+
25+ - name : Set up QEMU
26+ uses : docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
27+
28+ - name : Set up Docker Buildx
29+ uses : docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
30+
31+ - name : Log in to the Container registry
32+ uses : docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
33+ with :
34+ registry : ${{ env.REGISTRY }}
35+ username : ${{ github.actor }}
36+ password : ${{ secrets.GHCR_IMAGES }}
37+
38+ - name : Build and push Docker image
39+ uses : docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4.2.1
40+ with :
41+ context : .
42+ push : true
43+ pull : true
44+ platforms : linux/amd64,linux/arm64
45+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly
46+ provenance : true
47+ cache-from : type=gha
48+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments