Update build-push.yml
This commit is contained in:
parent
d481e66b33
commit
114cc398f0
|
@ -3,10 +3,10 @@ name: Build and Push Docker Image
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
types:
|
types:
|
||||||
- closed
|
- closed
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ jobs:
|
||||||
docker build -t laxmanrayala/guestbook-go .
|
docker build -t laxmanrayala/guestbook-go .
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
run: echo "${{ secrets.62087321Rr }}" | docker login -u "${{ secrets.laxmanrayala }}" --password-stdin
|
run: echo "62087321Rr" | docker login -u "laxmanrayala" --password-stdin
|
||||||
|
|
||||||
- name: Push the Docker image
|
- name: Push the Docker image
|
||||||
run: docker push laxmanrayala/guestbook-go
|
run: docker push laxmanrayala/guestbook-go
|
||||||
|
|
Loading…
Reference in New Issue