use cleartext DOCKERHUB_USERNAME

This commit is contained in:
mauwii 2023-02-07 05:56:11 +01:00 committed by Matthias Wild
parent 9150f9ef3c
commit 1d10d952b2

View File

@ -41,7 +41,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
images: | images: |
ghcr.io/${{ github.repository }} ghcr.io/${{ github.repository }}
${{ vars.DOCKER_HUB }} ${{ vars.DOCKERHUB_REPOSITORY }}
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=tag type=ref,event=tag
@ -70,10 +70,10 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub - name: Login to Docker Hub
if: github.event_name != 'pull_request' && vars.DOCKER_HUB != '' if: github.event_name != 'pull_request' && vars.DOCKERHUB_REPOSITORY != ''
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build container - name: Build container
@ -93,12 +93,12 @@ jobs:
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
- name: Docker Hub Description - name: Docker Hub Description
if: github.event_name != 'pull_request' && vars.DOCKER_HUB != '' if: github.event_name != 'pull_request' && vars.DOCKERHUB_REPOSITORY != ''
uses: peter-evans/dockerhub-description@v3 uses: peter-evans/dockerhub-description@v3
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ vars.DOCKER_HUB }} repository: ${{ vars.DOCKERHUB_REPOSITORY }}
short-description: ${{ github.event.repository.description }} short-description: ${{ github.event.repository.description }}
- name: Output image, digest and metadata to summary - name: Output image, digest and metadata to summary