mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
docker-image.yml complete
This commit is contained in:
parent
4f3423a6b9
commit
dfbdf65bd6
1 changed files with 22 additions and 4 deletions
26
.github/workflows/docker-image.yml
vendored
26
.github/workflows/docker-image.yml
vendored
|
|
@ -24,7 +24,25 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- name: Extract metadata for Docker
|
||||||
- name: Build the Docker image
|
id: meta
|
||||||
run: docker build . --file Dockerfile --tag geth-assignment:$(date +%s)
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
images: ${{ secrets.DOCKERHUB_USERNAME }}/get-etherium-assignment
|
||||||
|
tags: |
|
||||||
|
type=sha,format=long
|
||||||
|
type=ref,event=branch
|
||||||
|
latest
|
||||||
|
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue