4949 LATEST_BITCOIN_MAJOR_VERSION=$(find . -type d -maxdepth 1 -not -path '*/\.*' | sort -n | tail -n 1 | cut -c 3-)
5050 PLATFORMS="linux/amd64"
5151 PUSH=false
52- REPO=ruimarinho /bitcoin-core
52+ REPO=${{ github.repository_owner }} /bitcoin-core
5353 TAGS=()
5454
5555 if [[ $GITHUB_REF == refs/tags/* ]]; then
@@ -96,17 +96,17 @@ jobs:
9696
9797 echo ::set-output name=build_date::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
9898 echo ::set-output name=docker_platforms::${PLATFORMS}
99- echo ::set-output name=docker_username::ruimarinho
99+ echo ::set-output name=docker_username::${{ secrets.DOCKER_USERNAME }}
100100 echo ::set-output name=push::${PUSH}
101101 echo ::set-output name=tags::${TAGS[@]}
102102 echo ::set-output name=build::true
103103
104104 - if : ${{ steps.prepare.outputs.build }} == 'true'
105105 name : Login into Docker Hub
106- uses : docker/ login-action@v1
106+ uses : lightninglabs/gh-actions/ login-action@2021.01.25.00
107107 with :
108- username : ruimarinho
109- password : ${{ secrets.DOCKER_HUB_PASSWORD }}
108+ username : ${{ secrets.DOCKER_USERNAME }}
109+ password : ${{ secrets.DOCKER_API_KEY }}
110110
111111 - if : ${{ steps.prepare.outputs.build }} == 'true'
112112 name : Build Docker image
@@ -133,3 +133,8 @@ jobs:
133133 --build-arg "VCS_REF=${GITHUB_SHA::8}" \
134134 $(printf "%s" "${TAGS[@]/#/ --tag }" ) \
135135 ${{ matrix.version }}/
136+
137+ - if : ${{ steps.prepare.outputs.build }} == 'true'
138+ name : Clear Docker credentials
139+ run : |
140+ rm -f ${HOME}/.docker/config.json
0 commit comments