88
99env :
1010 REGISTRY : ghcr.io
11- BACKEND_IMAGE_NAME : ${{ github.repository }}/ctmon-ingest
11+ CTMON_INGEST_IMAGE_NAME : ${{ github.repository }}/ctmon-ingest
12+ SIGSTORE_INGEST_IMAGE_NAME : ${{ github.repository }}/sigstore-ingest
1213 UI_IMAGE_NAME : ${{ github.repository }}/ctmon-ui
1314
1415jobs :
4243 - name : Build UI
4344 run : cd ui && npm run build
4445
45- build-and-push-backend :
46+ build-and-push-ctmon-ingest :
4647 needs : test
4748 runs-on : ubuntu-latest
4849 permissions :
@@ -60,26 +61,64 @@ jobs:
6061 username : ${{ github.actor }}
6162 password : ${{ secrets.GITHUB_TOKEN }}
6263
63- - name : Extract backend metadata
64- id : meta-backend
64+ - name : Extract ctmon-ingest metadata
65+ id : meta-ctmon-ingest
6566 uses : docker/metadata-action@v5
6667 with :
67- images : ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}
68+ images : ${{ env.REGISTRY }}/${{ env.CTMON_INGEST_IMAGE_NAME }}
6869 tags : |
6970 type=ref,event=branch
7071 type=ref,event=pr
7172 type=sha
7273 type=raw,value=latest,enable={{is_default_branch}}
7374
74- - name : Build and push backend Docker image
75+ - name : Build and push ctmon-ingest Docker image
7576 uses : docker/build-push-action@v5
7677 with :
7778 context : .
7879 push : true
79- tags : ${{ steps.meta-backend .outputs.tags }}
80- labels : ${{ steps.meta-backend .outputs.labels }}
80+ tags : ${{ steps.meta-ctmon-ingest .outputs.tags }}
81+ labels : ${{ steps.meta-ctmon-ingest .outputs.labels }}
8182 target : ctmon_ingest
8283
84+ build-and-push-sigstore-ingest :
85+ needs : test
86+ runs-on : ubuntu-latest
87+ permissions :
88+ contents : read
89+ packages : write
90+
91+ steps :
92+ - name : Checkout repository
93+ uses : actions/checkout@v4
94+
95+ - name : Log in to Container Registry
96+ uses : docker/login-action@v3
97+ with :
98+ registry : ${{ env.REGISTRY }}
99+ username : ${{ github.actor }}
100+ password : ${{ secrets.GITHUB_TOKEN }}
101+
102+ - name : Extract sigstore-ingest metadata
103+ id : meta-sigstore-ingest
104+ uses : docker/metadata-action@v5
105+ with :
106+ images : ${{ env.REGISTRY }}/${{ env.SIGSTORE_INGEST_IMAGE_NAME }}
107+ tags : |
108+ type=ref,event=branch
109+ type=ref,event=pr
110+ type=sha
111+ type=raw,value=latest,enable={{is_default_branch}}
112+
113+ - name : Build and push sigstore-ingest Docker image
114+ uses : docker/build-push-action@v5
115+ with :
116+ context : .
117+ push : true
118+ tags : ${{ steps.meta-sigstore-ingest.outputs.tags }}
119+ labels : ${{ steps.meta-sigstore-ingest.outputs.labels }}
120+ target : sigstore_ingest
121+
83122 build-and-push-ui :
84123 needs : test
85124 runs-on : ubuntu-latest
0 commit comments