Skip to content

Commit

Permalink
ci: enhance GitHub Actions workflow configuration
Browse files Browse the repository at this point in the history
- Add environment variable `REPO_VERSION` to GitHub Actions workflow
- Print the `GITHUB_REF_NAME` without the leading 'v' in the GitHub Actions workflow

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Jun 22, 2024
1 parent 650a037 commit ea2f4ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
- name: downcase REPO
run: |
echo "REPO=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
echo "REPO_VERSION=${GITHUB_REF_NAME#v}" >> ${GITHUB_ENV}
echo ${GITHUB_REF_NAME#v}
- name: Build and push
uses: docker/build-push-action@v5
Expand Down

0 comments on commit ea2f4ea

Please sign in to comment.