name: docker-build on: push: tags: - "*" permissions: contents: read packages: write jobs: build: name: Build image runs-on: dind container: git.realmanual.ru/pub/docker-build steps: - name: Checkout repository uses: actions/checkout@v4 - name: Log in to the Container registry uses: docker/login-action@v3 with: registry: hub.realmanual.ru username: ${{ gitea.actor }} password: ${{ secrets.PUSH_TOKEN }} - name: Extract metadata (tags, labels) for id: meta uses: docker/metadata-action@v5 with: images: ${{ gitea.repository }} - name: Build and push Docker image id: push uses: docker/build-push-action@v6 with: context: . push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}