mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Merge pull request #3 from totovskimartin/docker-build-syntax
Added context on docker build/push step
This commit is contained in:
commit
7cb3adbbf5
2 changed files with 8 additions and 9 deletions
15
.github/workflows/docker-build.yaml
vendored
15
.github/workflows/docker-build.yaml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Build and Push Docker image to my DockerHub repo
|
name: Docker image CI/CD
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
@ -20,10 +20,9 @@ jobs:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build and Push Docker Image
|
||||||
run: |
|
uses: docker/build-push-action@v2
|
||||||
docker build -t mtotovski/go-ethereum:latest .
|
with:
|
||||||
|
context: .
|
||||||
- name: Push Docker Image
|
tags: mtotovski/go-ethereum:latest
|
||||||
run: |
|
push: true
|
||||||
docker push mtotovski/go-ethereum:latest
|
|
||||||
|
|
|
||||||
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
|
|
@ -10,7 +10,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue