File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & push :)
2+
3+ on :
4+ push :
5+ branches : [ main, master, trunk ]
6+ pull_request :
7+ branches : [ main, master, trunk ]
8+
9+ env :
10+ REGISTRY : ghcr.io
11+ IMAGE_NAME : qdentity/uploads-test
12+
13+ jobs :
14+ build-and-push :
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : read
18+ packages : write
19+
20+ steps :
21+ - name : Checkout repository
22+ uses : actions/checkout@v4
23+
24+ - name : Extract metadata
25+ id : meta
26+ uses : docker/metadata-action@v5
27+ with :
28+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
29+ tags : |
30+ type=ref,event=branch
31+ type=ref,event=pr
32+ type=sha,prefix={{branch}}-
33+ type=raw,value=latest,enable={{is_default_branch}}
34+
35+ - name : Build and push Docker image
36+ uses : docker/build-push-action@v5
37+ with :
38+ context : .
39+ platforms : linux/amd64
40+ push : true
41+ tags : ${{ steps.meta.outputs.tags }}
42+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments