Skip to content

Commit

Permalink
#154 - Setup CI/CD 1️⃣3️⃣ 🫸🌀✏️📗 :octocat:🐧🐳
Browse files Browse the repository at this point in the history
  • Loading branch information
hendisantika committed Mar 13, 2024
1 parent 829007b commit 7d48539
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/deploy_via_ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,21 @@ jobs:
- name: Scrape build info
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# file: Dockerfile
# push: true
# labels: ${{ steps.meta.outputs.labels }}
## tags: ${{secrets.AWS_ECR_REPO}}:${{ github.run_number }}
# tags: 267023985114.dkr.ecr.ap-southeast-1.amazonaws.com/hikaricp:${{ github.run_number }}
# build-args: |
# GIT_VERSION_TAG=${{ env.RELEASE_VERSION }}
# GIT_COMMIT_MESSAGE=${{ github.event.head_commit.message }}
# GIT_VERSION_HASH=${{ github.sha }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
labels: ${{ steps.meta.outputs.labels }}
# tags: hendisantika/bmi:${{ steps.meta.outputs.tags }}
# tags: ${{ steps.meta.outputs.tags }}
# tags: hendisantika/bmi:latest
tags: hendisantika/hikaricp:${{ github.run_number }}
build-args: |
GIT_VERSION_TAG=${{ env.RELEASE_VERSION }}
GIT_COMMIT_MESSAGE=${{ github.event.head_commit.message }}
GIT_VERSION_HASH=${{ github.sha }}
- run: docker build --tag hikaricp:$IMAGE_TAG .

Expand Down

0 comments on commit 7d48539

Please sign in to comment.