File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker build
2+
3+ # Run this workflow every time a new commit pushed to your repository
4+ on :
5+ push :
6+
7+
8+ env :
9+ PUID : ' 1000'
10+ PGID : ' 1000'
11+
12+ jobs :
13+ tests :
14+ runs-on : ubuntu-20.04
15+ name : Build
16+ steps :
17+ # Checks out a copy of your repository on the ubuntu machine
18+ - name : Checkout code
19+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
21+ - name : Login to GitHub Container Registry
22+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
23+ with :
24+ registry : ghcr.io
25+ username : ${{ github.actor }}
26+ password : ${{ secrets.GITHUB_TOKEN }}
27+
28+ - name : Build and push
29+ run : |
30+ docker build . --tag ghcr.io/LycheeOrg/LycheeOrg:latest
31+ docker push ghcr.io/LycheeOrg/LycheeOrg:latest
You can’t perform that action at this time.
0 commit comments