From 369c3617bc86d0addff16bec466b8790f9508264 Mon Sep 17 00:00:00 2001 From: Andy Pack Date: Sun, 28 Jul 2024 13:00:52 +0100 Subject: [PATCH] writing creds to file --- .gitea/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 0f26f6f..56076fe 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -59,11 +59,18 @@ jobs: git-fetch-with-cli = true EOF + - name: Add SarGit Credentials + run: | + cat < ~/.cargo/credentials.toml + [registries.sargit] + token = "Bearer ${{ secrets.DOCKERHUB_TOKEN }}" + EOF + - name: Cargo Publish uses: actions-rs/cargo@v1 with: command: publish - args: --token "${{ secrets.DOCKERHUB_TOKEN }}" --package dnstplib + args: --package dnstplib package: runs-on: ubuntu-latest