Skip to content

Commit

Permalink
fix: version for docker images in ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed May 23, 2024
1 parent bc8973b commit 4ff122f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,39 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Get last commit hash
id: get_commit_hash
run: echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
-
name: Build and push for mercury-server
uses: docker/build-push-action@v5
with:
context: .
file: ./server/Dockerfile
push: true
tags: commerceblockx/mercury-server:latest
tags: commerceblockx/mercury-server:${{ env.COMMIT_HASH }}
-
name: Build and push for token-server
uses: docker/build-push-action@v5
with:
context: .
file: ./token-server/Dockerfile
push: true
tags: commerceblockx/token-server:latest
tags: commerceblockx/token-server:${{ env.COMMIT_HASH }}
-
name: Build and pushh for mercury-explorer
name: Build and push for mercury-explorer
uses: docker/build-push-action@v5
with:
context: .
file: ./explorer/Dockerfile
push: true
tags: commerceblockx/mercury-explorer:latest
tags: commerceblockx/mercury-explorer:${{ env.COMMIT_HASH }}
-
name: Build and push for keylist-cronjob
uses: docker/build-push-action@v5
with:
context: .
file: ./keylistCron/Dockerfile
push: true
tags: commerceblockx/keylist-cronjob:latest
tags: commerceblockx/keylist-cronjob:${{ env.COMMIT_HASH }}

0 comments on commit 4ff122f

Please sign in to comment.