name: Publish server Docker image on: push: branches: ["main"] tags: ["*"] pull_request: branches: ["main"] jobs: publish-docker: runs-on: docker steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build and publish server image uses: http://forgejo:3000/andras/ci-actions/docker-publish@main with: context: sync-server # Push only on tags (matches the previous workflow's behaviour). push: ${{ github.ref_type == 'tag' }} token: ${{ secrets.GITHUB_TOKEN }}