Skip to content

Commit ec8700e

Browse files
committed
feat: use Repository variables save docker hub info
1 parent e979b5d commit ec8700e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/bitcoin_core.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
# use strategy matrix build images
17-
env:
18-
DOCKERHUB_REPO: "bitcoin-core"
1917
strategy:
2018
matrix:
2119
image:
@@ -63,12 +61,12 @@ jobs:
6361
- name: Login to Docker Hub
6462
uses: docker/login-action@v3
6563
with:
66-
username: ${{ secrets.DOCKERHUB_USERNAME }}
64+
username: ${{ vars.DOCKERHUB_USERNAME }}
6765
password: ${{ secrets.DOCKERHUB_TOKEN }}
6866
- name: Build and push
6967
uses: docker/build-push-action@v5
7068
with:
7169
context: ${{ matrix.image.context }}
7270
platforms: linux/amd64,linux/arm64
7371
push: true
74-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPO }}:${{ matrix.image.name }}
72+
tags: ${{ vars.DOCKERHUB_USERNAME }}/${{ vars.DOCKERHUB_REPO }}:${{ matrix.image.name }}

0 commit comments

Comments
 (0)