Merge pull request #4 from PiyushXCoder/PiyushXCoder-workflow

Modification to variable
This commit is contained in:
Piyush मिश्रः 2023-12-06 21:09:53 +05:30 committed by GitHub
commit e498f10d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -2,9 +2,11 @@ name: Docker Image CI
on: on:
push: push:
branches: [ "main" ] branches:
- "main"
pull_request: pull_request:
branches: [ "main" ] branches:
- "main"
jobs: jobs:
push-store-image: push-store-image:
@ -23,6 +25,6 @@ jobs:
- name: 'Build Inventory Image' - name: 'Build Inventory Image'
run: | run: |
docker build . --tag ghcr.io/${{env.GITHUB_REPOSITORY}}:main docker build . --tag ghcr.io/${{github.repository}}:main
docker push ghcr.io/${{env.GITHUB_REPOSITORY}}:main docker push ghcr.io/${{github.repository}}:main