Skip to content

Commit b6cb4c9

Browse files
committed
updated build docker image with tag
1 parent c246f33 commit b6cb4c9

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/M1-4-2-CI-Practice.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,12 @@ jobs:
135135
username: ${{ secrets.DOCKERHUB_USERNAME }}
136136
password: ${{ secrets.DOCKERHUB_TOKEN }}
137137

138-
- id: docker-publish
139-
name: Build image
140-
uses: bitovi/[email protected]
138+
- name: Build image
139+
uses: docker/build-push-action@v6
141140
with:
142-
docker_username: ${{ secrets.DOCKERHUB_USERNAME }}
143-
docker_password: ${{ secrets.DOCKERHUB_TOKEN }}
144-
checkout: 'false'
145-
image_tag: it
146-
sha: 'true' # won't do anything since image_tag is set
147-
org_name: bitovi
148-
repo_name: deploy-eks-helm
149-
build_args: --build-arg git_personal_token=PAT_token
150-
working-directory: ./app/inner-folder
141+
context: .
142+
push: true
143+
tags: ${{ github.sha }}
151144
- run: |
152145
echo "Image Created: ${{ env.image }}"
153146
echo "Tag Created: ${{ env.tag }}"

0 commit comments

Comments
 (0)