Skip to content

Commit ed546a3

Browse files
committed
Updating workflow for github
1 parent 9a088ac commit ed546a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/dockerimage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v1
1313
- name: Build the Docker image
14-
run: docker build . --file Dockerfile --tag docker.pkg.github.com/dipayan90/${GITHUB_REPOSITORY}:${GITHUB_SHA} --tag docker.pkg.github.com/dipayan90/${GITHUB_REPOSITORY}:latest
14+
run: docker build . --file Dockerfile --tag docker.pkg.github.com/${GITHUB_REPOSITORY}:${GITHUB_SHA} --tag docker.pkg.github.com/${GITHUB_REPOSITORY}:latest
1515
- name: Login to Github docker Registry
1616
env:
1717
github_password: ${{ secrets.GITHUB_PASSWORD }}
1818
run: docker login docker.pkg.github.com --username dipayan90 --password $github_password
1919
- name: Push Image To Registry
20-
run: docker push docker.pkg.github.com/dipayan90/${GITHUB_REPOSITORY}:${GITHUB_SHA} && docker push docker.pkg.github.com/dipayan90/${GITHUB_REPOSITORY}:latest
20+
run: docker push docker.pkg.github.com/${GITHUB_REPOSITORY}:${GITHUB_SHA} && docker push docker.pkg.github.com/${GITHUB_REPOSITORY}:latest

0 commit comments

Comments
 (0)