49
49
LATEST_BITCOIN_MAJOR_VERSION=$(find . -type d -maxdepth 1 -not -path '*/\.*' | sort -n | tail -n 1 | cut -c 3-)
50
50
PLATFORMS="linux/amd64"
51
51
PUSH=false
52
- REPO=ruimarinho /bitcoin-core
52
+ REPO=${{ github.repository_owner }} /bitcoin-core
53
53
TAGS=()
54
54
55
55
if [[ $GITHUB_REF == refs/tags/* ]]; then
@@ -96,17 +96,17 @@ jobs:
96
96
97
97
echo ::set-output name=build_date::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
98
98
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 }}
100
100
echo ::set-output name=push::${PUSH}
101
101
echo ::set-output name=tags::${TAGS[@]}
102
102
echo ::set-output name=build::true
103
103
104
104
- if : ${{ steps.prepare.outputs.build }} == 'true'
105
105
name : Login into Docker Hub
106
- uses : docker/ login-action@v1
106
+ uses : lightninglabs/gh-actions/ login-action@2021.01.25.00
107
107
with :
108
- username : ruimarinho
109
- password : ${{ secrets.DOCKER_HUB_PASSWORD }}
108
+ username : ${{ secrets.DOCKER_USERNAME }}
109
+ password : ${{ secrets.DOCKER_API_KEY }}
110
110
111
111
- if : ${{ steps.prepare.outputs.build }} == 'true'
112
112
name : Build Docker image
@@ -133,3 +133,8 @@ jobs:
133
133
--build-arg "VCS_REF=${GITHUB_SHA::8}" \
134
134
$(printf "%s" "${TAGS[@]/#/ --tag }" ) \
135
135
${{ 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