Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
khoitmp committed Jul 29, 2024
1 parent cbe5afa commit 0472a26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,22 @@ jobs:
id: gitversion
uses: gittools/actions/gitversion/setup@v3.0.0
with:
configFile: ./GitVersion.yml
useConfigFile: true

- name: Build Docker Image
run: docker build -t ${{ github.repository }}:latest .
- name: Display GitVersion Output
run: |
echo "GitVersion output:"
echo "${{ steps.gitversion.outputs }}"
echo "SemVer: ${{ steps.gitversion.outputs.semver }}"
# - name: Build Docker Image
# run: docker build -t ${{ github.repository }}:latest .

- name: Tag Docker Image
# - name: Tag Docker Image
# run: |
# docker tag ${{ github.repository }}:latest ${{ github.repository }}:${{ steps.gitversion.outputs.semver }}
# echo "Image tagged as ${{ github.repository }}:${{ steps.gitversion.outputs.semver }}"
run: echo "Image tagged as ${{ github.repository }}:${{ steps.gitversion.outputs.semver }}"
# run: echo "Image tagged as ${{ github.repository }}:${{ steps.gitversion.outputs.semver }}"

# - name: Push Docker Image
# run: docker push ${{ github.repository }}:${{ env.VERSION }}
1 change: 0 additions & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# GitVersion.yml
mode: Mainline
ignore:
sha: []

0 comments on commit 0472a26

Please sign in to comment.