From 0dce3188cc19fafdd34288eaba6cfa162db58534 Mon Sep 17 00:00:00 2001 From: mauwii Date: Thu, 9 Feb 2023 03:35:16 +0100 Subject: [PATCH] make DOCKERHUB_USERNAME a secret --- .github/workflows/build-container.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 60aaf4780d..b768337f00 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -73,7 +73,7 @@ jobs: if: github.event_name != 'pull_request' && vars.DOCKERHUB_REPOSITORY != '' uses: docker/login-action@v2 with: - username: ${{ vars.DOCKERHUB_USERNAME }} + username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build container @@ -96,7 +96,7 @@ jobs: if: github.ref == 'refs/heads/main' || github.ref == 'refs/tags/*' && vars.DOCKERHUB_REPOSITORY != '' uses: peter-evans/dockerhub-description@v3 with: - username: ${{ vars.DOCKERHUB_USERNAME }} + username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} repository: ${{ vars.DOCKERHUB_REPOSITORY }} short-description: ${{ github.event.repository.description }}