Skip to content

Commit

Permalink
ci: add git tag
Browse files Browse the repository at this point in the history
Signed-off-by: Phoeniix Zhao <[email protected]>
  • Loading branch information
Phoenix500526 committed Feb 5, 2024
1 parent ef53fb1 commit 1738557
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ jobs:
uses: actions/checkout@v2
with:
submodules: recursive
- name: Generate App Version
id: generate_app_version
run: echo app_version=`git describe --tags --always` >> $GITHUB_OUTPUT
- name: Build xline operator image
run: |
make docker-build IMG=${{ env.IMAGE_ID }}:${{ github.ref }}
make docker-build IMG=${{ env.IMAGE_ID }}:${{ steps.generate_app_version.outputs.app_version }}
- name: Login to GHCR
if: startsWith(matrix.job.platform, 'linux/')
uses: docker/login-action@v2
Expand All @@ -32,7 +35,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push docker image to GHCR
run: |
make docker-push IMG=${{ env.IMAGE_ID }}:${{ github.ref }}
make docker-push IMG=${{ env.IMAGE_ID }}:${{ steps.generate_app_version.outputs.app_version }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 1738557

Please sign in to comment.