diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0230fe8..39db458 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: tags: - '*' jobs: - build: + release: runs-on: ubuntu-latest steps: - uses: https://gitea.com/actions/checkout@master @@ -18,4 +18,28 @@ jobs: uses: https://gitea.com/actions/gitea-release-action@v1 with: server_url: https://gitea.wpgcommunity.net - files: 'server.zip' \ No newline at end of file + files: 'server.zip' + docker: + runs-on: ubuntu-latest + steps: + - uses: https://gitea.com/actions/checkout@master + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: | + ${{ vars.DOCKER_REPO }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to private docker registry + uses: https://github.com/docker/login-action@v3 + with: + registry: ${{ vars.DOCKER_REPO }} + username: ${{ vars.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build and push + uses: https://github.com/docker/build-push-action@v6 + with: + push: true + context: . + tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file