Update build-push.yml

This commit is contained in:
laxmanrayala 2024-08-30 21:44:35 +05:30 committed by GitHub
parent d481e66b33
commit 114cc398f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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