Browse Source

Create docker-publish.yml

pull/19/head
Alex 3 years ago committed by GitHub
parent
commit
ae3af71c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 30
      .github/workflows/docker-publish.yml

30
.github/workflows/docker-publish.yml

@ -0,0 +1,30 @@ @@ -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…
Cancel
Save