Skip to content

Commit ae3af71

Browse files
authored
Create docker-publish.yml
1 parent e281e7e commit ae3af71

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Docker Publish
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
docker-publish:
9+
name: Docker Publish
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Login to GitHub Container Registry
16+
uses: docker/login-action@v1
17+
with:
18+
registry: ghcr.io
19+
username: ${{ github.actor }}
20+
password: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Build
23+
run: |-
24+
docker build \
25+
--tag "ghcr.io/gitea-group-sync/gitea-group-sync:master" \
26+
.
27+
28+
- name: Publish
29+
run: |-
30+
docker push "ghcr.io/gitea-group-sync/gitea-group-sync:master"

0 commit comments

Comments
 (0)