Merge pull request #3 from totovskimartin/docker-build-syntax

Added context on docker build/push step
This commit is contained in:
Martin Totovski 2025-03-19 09:04:52 +02:00 committed by GitHub
commit 7cb3adbbf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 9 deletions

View file

@ -1,4 +1,4 @@
name: Build and Push Docker image to my DockerHub repo
name: Docker image CI/CD
on:
pull_request:
@ -20,10 +20,9 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build Docker Image
run: |
docker build -t mtotovski/go-ethereum:latest .
- name: Push Docker Image
run: |
docker push mtotovski/go-ethereum:latest
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
tags: mtotovski/go-ethereum:latest
push: true

View file

@ -10,7 +10,7 @@ on:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v4