From 825aad780252e67a735fe45d5763585fe8692fa1 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Fri, 3 Nov 2023 15:16:03 +0100 Subject: [PATCH] ci: login registry --- .gitea/workflows/server.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index 329400a..c7346db 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -125,6 +125,12 @@ jobs: run: | mkdir ~/.docker curl -sSfL https://raw.githubusercontent.com/docker/sbom-cli-plugin/main/install.sh | sh -s -- + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: ${{ github.server_url }} + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }} - name: Generate SBOM run: | docker sbom forge.rainote.dev/${{ github.repository }}:${{ github.ref_name }} --format cyclonedx-json --output bom.json