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