Create docker-publish.yml
parent
e281e7e876
commit
ae3af71c35
|
@ -0,0 +1,30 @@
|
|||
name: Docker Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
docker-publish:
|
||||
name: Docker Publish
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build
|
||||
run: |-
|
||||
docker build \
|
||||
--tag "ghcr.io/gitea-group-sync/gitea-group-sync:master" \
|
||||
.
|
||||
|
||||
- name: Publish
|
||||
run: |-
|
||||
docker push "ghcr.io/gitea-group-sync/gitea-group-sync:master"
|
Loading…
Reference in New Issue