Skip to content

Commit

Permalink
Added user name for the git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
tanyaveksler committed Aug 24, 2021
1 parent 23b9b25 commit d3eb819
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-push-NCA-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/ibm/nca:${{ github.event.inputs.version }}
# - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# tags: ghcr.io/ibm/nca:${{ github.event.inputs.version }}

- name: Create and push a new git tag
run: |
git config user.name ${{ github.actor }}
git tag -a v${{ github.event.inputs.version }} -m "Version ${{ github.event.inputs.version }}"
git push origin v${{ github.event.inputs.version }}
Expand Down

0 comments on commit d3eb819

Please sign in to comment.