Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 24f46da

Browse files
github workflow overrides for alternate users
1 parent 0547dd9 commit 24f46da

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎.github/workflows/build.yaml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
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
@@ -94,7 +94,7 @@ 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_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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /