File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : nightly
2+ on :
3+ workflow_dispatch :
4+ schedule :
5+ - cron : " 0 10 * * *"
6+ permissions :
7+ contents : read
8+ packages : write
9+ id-token : write
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ component :
17+ - squashfs-tools
18+ name : oci build ${{ matrix.component }}
19+ steps :
20+ - uses : step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
21+ with :
22+ egress-policy : audit
23+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24+ with :
25+ submodules : recursive
26+ - uses : sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
27+ - uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
28+ - uses : docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
29+ with :
30+ registry : ghcr.io
31+ username : ${{ github.actor }}
32+ password : ${{ secrets.GITHUB_TOKEN }}
33+ - uses : docker/build-push-action@15560696de535e4014efeff63c48f16952e52dd1 # v6.2.0
34+ id : push-step
35+ with :
36+ file : ./Dockerfile.${{ matrix.component }}
37+ platforms : linux/amd64,linux/aarch64
38+ tags : ghcr.io/edera-dev/${{ matrix.component }}:nightly
39+ push : true
40+ - name : Sign the image
41+ env :
42+ DIGEST : ${{ steps.push-step.outputs.digest }}
43+ TAGS : ghcr.io/edera-dev/${{ matrix.component }}:nightly
44+ COSIGN_EXPERIMENTAL : " true"
45+ run : cosign sign --yes "${TAGS}@${DIGEST}"
You can’t perform that action at this time.
0 commit comments