Skip to content

Commit

Permalink
Fixed Docker Action (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvatsal60 authored Sep 15, 2024
2 parents f004ff9 + aa26cd2 commit 50d995b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-img-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,15 +40,15 @@ jobs:
uses: docker/build-push-action@v6
with:
context: Dockerfiles
file: ${{ matrix.dockerfile }}
file: Dockerfiles/${{ matrix.dockerfile }}
push: false
tags: ghcr.io/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
- name: Build and push Docker image
if: github.event_name == 'push'
uses: docker/build-push-action@v6
with:
context: Dockerfiles
file: ${{ matrix.dockerfile }}
file: Dockerfiles/${{ matrix.dockerfile }}
push: true
tags: ghcr.io/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
cache-from: type=registry,ref=ghcr.io/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
Expand Down
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@ maintaining code quality and documentation consistency. It includes:

To install Project Template, follow these steps:

1. **Clone the repository:**

```bash
git clone https://github.com/gvatsal60/project-template.git
cd project-template
```

2. **Customize According to Your Project:**
1. **Customize According to Your Project:**
* Replace `[Project Name]`
* Update `[contact email]`
* Follow `[coding style guide]`
Expand Down

0 comments on commit 50d995b

Please sign in to comment.