Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
denismaggior8 committed Sep 27, 2023
1 parent 5fa03da commit 523f68d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build-docker-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ jobs:
- name: Get the commit SHA
id: get_commit_sha
run: echo ::set-output name=COMMIT_SHA::$(git rev-parse --short "$GITHUB_SHA")
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/[email protected]
with:
path: labs/02-eCommerce_microservices/customer/
dockerfile: labs/02-eCommerce_microservices/customer/Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ${{ secrets.DOCKER_USERNAME }}/customer
tags: ${{ steps.get_commit_sha.outputs.COMMIT_SHA }}-${{ steps.get_branch.outputs.BRANCH }}, latest
build_args: |
context: labs/02-eCommerce_microservices/customer/
file: labs/02-eCommerce_microservices/customer/Dockerfile
tags: ${{ secrets.DOCKER_USERNAME }}/customer:${{ steps.get_commit_sha.outputs.COMMIT_SHA }}-${{ steps.get_branch.outputs.BRANCH }}, latest
build-args: |
TAG=${{ steps.get_commit_sha.outputs.COMMIT_SHA }}-${{ steps.get_branch.outputs.BRANCH }}
add-hosts: customer-mongodb:127.0.0.1,order-postgres:127.0.0.1,kafka:127.0.0.1

Expand Down

0 comments on commit 523f68d

Please sign in to comment.