From ae3af71c356b0b0f95d2e34fd2ac63f626b3d521 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 21 Jun 2021 17:57:20 -0700 Subject: [PATCH] Create docker-publish.yml --- .github/workflows/docker-publish.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000..abb5dde --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -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"