forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added push to GitHub Container repositoriy.
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
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) |