File tree Expand file tree Collapse file tree 3 files changed +22
-7
lines changed
Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 2323 - name : Set up Docker Buildx
2424 id : buildx
2525 uses : docker/setup-buildx-action@v3
26+ - name : Set up cosign
27+ uses : sigstore/cosign-installer@v3
28+ if : ${{ github.event_name != 'pull_request' }}
2629 - name : login to Docker Hub
2730 if : ${{ github.event_name != 'pull_request' }}
2831 uses : docker/login-action@v3
@@ -36,14 +39,28 @@ jobs:
3639 registry : quay.io
3740 username : ${{ secrets.QUAYIO_USERNAME }}
3841 password : ${{ secrets.QUAYIO_PASSWORD }}
42+ - name : Login to GitHub Container Registry
43+ if : ${{ github.event_name == 'pull_request' }}
44+ uses : docker/login-action@v3
45+ with :
46+ registry : ghcr.io
47+ username : ${{ github.actor }}
48+ password : ${{ secrets.GITHUB_TOKEN }}
3949 - name : Build and push
4050 uses : docker/bake-action@v5
51+ id : bake
4152 with :
4253 builder : ${{ steps.buildx.outputs.name }}
4354 workdir : dockerfiles
4455 provenance : true
4556 sbom : true
46- push : ${{ github.event_name != 'pull_request' }}
57+ push : true
58+ targets : ktls-utils
4759 env :
4860 GIT_COMMIT : ${{ github.sha }}
4961 CACHE : true
62+ REGISTRIES : ghcr.io/piraeusdatastore
63+ - name : Sign images
64+ run : |
65+ jq '.[] | ."containerimage.digest" as $DIGEST | ."image.name" | split(",")[] | "\(.)@\($DIGEST)"' -r <<<'${{ steps.bake.outputs.metadata }}' \
66+ | xargs cosign sign --yes
Original file line number Diff line number Diff line change @@ -25,10 +25,7 @@ variable VERSIONS {
2525}
2626
2727variable "REGISTRIES" {
28- default = [
29- " quay.io/piraeusdatastore" ,
30- " docker.io/piraeusdatastore" ,
31- ]
28+ default = " quay.io/piraeusdatastore,docker.io/piraeusdatastore"
3229}
3330
3431# Replace all characters that are not supported in a target name with "-".
@@ -41,7 +38,7 @@ function "escape" {
4138function "tags" {
4239 params = [name , version ]
4340 result = flatten ([
44- for registry in REGISTRIES :
41+ for registry in split ( " , " , REGISTRIES) :
4542 [
4643 // Full version
4744 " ${ registry } /${ name } :v${ version } " ,
Original file line number Diff line number Diff line change 11FROM centos:centos7
22MAINTAINER Roland Kammerer <roland.kammerer@linbit.com>
33
4- RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical && \
4+ RUN sed -e 's/^mirrorlist=/#mirrorlist=/' -e 's%^#baseurl=http://mirror.centos.org%baseurl=http://vault.centos.org%' -i /etc/yum.repos.d/*.repo && \
5+ yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical && \
56 yum install -y gcc make patch diffutils perl kmod && yum clean all -y
67
78ARG DRBD_VERSION
You can’t perform that action at this time.
0 commit comments