mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Update docker-image.yml
Added push to GitHub Container repositoriy.
This commit is contained in:
parent
b1ae96ee43
commit
7103b5d573
1 changed files with 11 additions and 3 deletions
14
.github/workflows/docker-image.yml
vendored
14
.github/workflows/docker-image.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Build Docker image for project
|
||||
name: Build & Push Docker image for project
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -8,12 +8,20 @@ on:
|
|||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
build-and-push:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ (github.event_name == 'pull_request' && github.event.label.name == 'CI:Build') }}
|
||||
steps:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Login to Github Container repository
|
||||
- uses: docker/login-action@v3.2.0
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag go-etherium-devops:$(date +%s)
|
||||
- name: Push Docker image to Github container repository
|
||||
run: docker push ghcr.io/go-etherium-devops:$(date +%s)
|
||||
|
|
|
|||
Loading…
Reference in a new issue