mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
add secrets reference for docker hub
This commit is contained in:
parent
00588ffae7
commit
e5ca738051
1 changed files with 11 additions and 4 deletions
15
.github/workflows/docker-build-hell.yml
vendored
15
.github/workflows/docker-build-hell.yml
vendored
|
|
@ -36,7 +36,7 @@ jobs:
|
|||
file: ./Dockerfile # Path to the Dockerfile if not root
|
||||
platforms: linux/amd64 # Add ,linux/arm64 if you need multi-arch
|
||||
push: true # Change to false to keep image local to runner
|
||||
tags: go-etherium-satan:latest
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-etherium-satan:latest
|
||||
|
||||
ci-build-manual:
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
|
|
@ -50,12 +50,19 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
# Build (and optionally push) the image
|
||||
# 4) Log in to Docker Hub – store secrets in repo → Settings → Secrets and variables → Actions
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
# 5) Build (and optionally push) the image
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile # Path to the Dockerfile if not root
|
||||
platforms: linux/amd64 # Add ,linux/arm64 if you need multi-arch
|
||||
push: false # Change to false to keep image local to runner
|
||||
tags: go-etherium-satan:latest
|
||||
push: true # Change to false to keep image local to runner
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-etherium-satan:latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue