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 : Publish Docker image
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ env :
8+ REGISTRY : ghcr.io
9+ IMAGE_NAME : ${{ github.repository_owner }}/protocols-io-mcp
10+
11+ jobs :
12+ build-and-push :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ packages : write
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+ - name : Set up Docker Buildx
21+ uses : docker/setup-buildx-action@v3
22+ - name : Log in to Container Registry
23+ uses : docker/login-action@v3
24+ with :
25+ registry : ${{ env.REGISTRY }}
26+ username : ${{ github.actor }}
27+ password : ${{ secrets.GITHUB_TOKEN }}
28+ - name : Extract metadata
29+ id : meta
30+ uses : docker/metadata-action@v5
31+ with :
32+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
33+ tags : |
34+ type=ref,event=tag
35+ type=raw,value=latest
36+ - name : Build and push Docker image
37+ uses : docker/build-push-action@v5
38+ with :
39+ context : .
40+ platforms : linux/amd64,linux/arm64
41+ push : true
42+ tags : ${{ steps.meta.outputs.tags }}
43+ labels : ${{ steps.meta.outputs.labels }}
44+ cache-from : type=gha
45+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments