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"