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 5aa77e4

Browse files
Github workflow overrides for Lightning Labs
Expects the following GitHub Secrets: DOCKER_USERNAME: user to login to DockerHub DOCKER_API_KEY: password/token to login to DockerHub
1 parent 1344482 commit 5aa77e4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

‎.github/workflows/build.yaml‎

Lines changed: 10 additions & 5 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_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

Comments
(0)

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