File tree Expand file tree Collapse file tree 2 files changed +62
-3
lines changed
Expand file tree Collapse file tree 2 files changed +62
-3
lines changed Original file line number Diff line number Diff line change 99 build :
1010 runs-on : ubuntu-latest
1111 permissions :
12- id-token : write
13- packages : write
1412 contents : read
15- attestations : write
1613
1714 steps :
1815 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Original file line number Diff line number Diff line change 1+ name : Build (main)
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ env :
10+ REGISTRY : ghcr.io/openmcp-project
11+ IMAGE_NAME : mcp-ui-backend
12+
13+ jobs :
14+ build :
15+ name : Build
16+ runs-on : ubuntu-latest
17+ permissions :
18+ contents : write
19+ packages : write
20+ id-token : write
21+ attestations : write
22+
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+ with :
27+ fetch-depth : 0 # Fetch all history for all tags and branches
28+
29+ - name : Docker meta
30+ id : meta
31+ uses : docker/metadata-action@v5
32+ with :
33+ images : ${{REGISTRY}}/${{IMAGE_NAME}}
34+ tags : |
35+ type=sha,prefix={{branch}}-
36+
37+ - name : Log in to the Container registry
38+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
39+ with :
40+ registry : ${{ env.REGISTRY }}
41+ username : ${{ github.actor }}
42+ password : ${{ secrets.GITHUB_TOKEN }}
43+
44+ - name : Set up QEMU
45+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
46+
47+ - name : Set up Docker Buildx
48+ uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
49+
50+ - name : Build and push
51+ uses : docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
52+ with :
53+ context : .
54+ platforms : linux/amd64,linux/arm64
55+ push : true
56+ sbom : true
57+ provenance : mode=max
58+ tags : ${{ steps.meta.outputs.tags }}
59+ labels : ${{ steps.meta.outputs.labels }}
60+ annotations : ${{ steps.meta.outputs.annotations }}
61+ cache-from : type=gha
62+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments