Skip to content

Commit 201de88

Browse files
committed
push to GH container repository
1 parent 25fb7d2 commit 201de88

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/Docker.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

0 commit comments

Comments
 (0)