Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use a step to generate git tag #55

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading