File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish Image
2+
3+ on :
4+ workflow_run :
5+ workflows : ["Test"]
6+ types :
7+ - completed
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : read
12+ packages : write
13+
14+ jobs :
15+ BuildAndPushImage :
16+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - uses : docker/setup-qemu-action@v3
23+ - uses : docker/setup-buildx-action@v3
24+
25+ - name : Login to GHCR
26+ uses : docker/login-action@v3
27+ with :
28+ registry : ghcr.io
29+ username : ${{ github.actor }}
30+ password : ${{ secrets.GITHUB_TOKEN }}
31+
32+ - name : Docker metadata
33+ id : meta
34+ uses : docker/metadata-action@v5
35+ with :
36+ images : ghcr.io/flowdacity/queue-server
37+ tags : |
38+ type=raw,value=dev,enable={{is_default_branch}}
39+ type=ref,event=tag
40+
41+ - name : Build and push
42+ uses : docker/build-push-action@v6
43+ with :
44+ context : .
45+ push : true
46+ tags : ${{ steps.meta.outputs.tags }}
47+ labels : ${{ steps.meta.outputs.labels }}
48+ cache-from : type=gha
49+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments