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_USERNAME }} /bitcoin-core
5151 TAGS=()
5252
5353 if [[ $GITHUB_REF == refs/tags/* ]]; then
@@ -94,17 +94,17 @@ jobs:
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_USERNAME }}
9898 echo ::set-output name=push::${PUSH}
9999 echo ::set-output name=tags::${TAGS[@]}
100100 echo ::set-output name=build::true
101101
102102 - if : ${{ steps.prepare.outputs.build }} == 'true'
103103 name : Login into Docker Hub
104- uses : docker/ login-action@v1
104+ uses : lightninglabs/gh-actions/ login-action@2021年01月25日.00
105105 with :
106- username : ruimarinho
107- password : ${{ secrets.DOCKER_HUB_PASSWORD }}
106+ username : ${{ secrets.DOCKER_USERNAME }}
107+ password : ${{ secrets.DOCKER_API_KEY }}
108108
109109 - if : ${{ steps.prepare.outputs.build }} == 'true'
110110 name : Build Docker image
@@ -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