4747 LATEST_BITCOIN_MAJOR_VERSION=$(find . -type d -maxdepth 1 -not -path '*/\.*' | sort -n | tail -n 1 | cut -c 3-)
4848 PLATFORMS="linux/amd64"
4949 PUSH=false
50- REPO=ruimarinho /bitcoin-core
50+ REPO=${{ secrets.DOCKER_HUB_USER }} /bitcoin-core
5151 TAGS=()
5252
5353 if [[ $GITHUB_REF == refs/tags/* ]]; then
9494
9595 echo ::set-output name=build_date::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
9696 echo ::set-output name=docker_platforms::${PLATFORMS}
97- echo ::set-output name=docker_username::ruimarinho
97+ echo ::set-output name=docker_username::${{ secrets.DOCKER_HUB_USER }}
9898 echo ::set-output name=push::${PUSH}
9999 echo ::set-output name=tags::${TAGS[@]}
100100 echo ::set-output name=build::true
@@ -103,7 +103,7 @@ jobs:
103103 name : Login into Docker Hub
104104 uses : docker/login-action@v1
105105 with :
106- username : ruimarinho
106+ username : ${{ secrets.DOCKER_HUB_USER }}
107107 password : ${{ secrets.DOCKER_HUB_PASSWORD }}
108108
109109 - if : ${{ steps.prepare.outputs.build }} == 'true'
@@ -131,3 +131,8 @@ jobs:
131131 --build-arg "VCS_REF=${GITHUB_SHA::8}" \
132132 $(printf "%s" "${TAGS[@]/#/ --tag }" ) \
133133 ${{ matrix.version }}/
134+
135+ - if : ${{ steps.prepare.outputs.build }} == 'true'
136+ name : Clear Docker credentials
137+ run : |
138+ rm -f ${HOME}/.docker/config.json
0 commit comments