name: ci on: push: branches: - main workflow_dispatch: jobs: docker: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Login to the registry uses: docker/login-action@v4 with: registry: git.jonb.io # The package lives in the trex namespace (Gitea only lets the # package owner push), so the token must be one trex owns. username: trex password: '${{ secrets.TREX_REGISTRY_TOKEN }}' - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4 - name: Build and push uses: docker/build-push-action@v7 with: context: . push: true tags: | git.jonb.io/trex/seafile-backup:latest git.jonb.io/trex/seafile-backup:${{ gitea.sha }}