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

Fix the tag deploy step #178

Merged
merged 1 commit into from
Jan 29, 2021
Merged

Fix the tag deploy step #178

merged 1 commit into from
Jan 29, 2021

Conversation

dduportal
Copy link
Contributor

The Makefile is now autonomous to determine the git tag and the ref,
making this process independant from the CI tool.

It utilizes the command line git to parse the current "ref".

The algorithm is the following:

  • If the current git ref points to a tag, then the variables GIT_TAG
    and GIT_REF are set to this tag's value.
  • Otherwise the variable GIT_TAG is undefined, and the variable
    GIT_REF is set to the current's branch

Signed-off-by: Damien Duportal damien.duportal@gmail.com

The `Makefile` is now autonomous to determine the git tag and the ref,
making this process independant from the CI tool.

It utilizes the command line `git` to parse the current "ref".

The algorithm is the following:

- If the current git ref points to a tag, then the variables `GIT_TAG`
and `GIT_REF` are set to this tag's value.
- Otherwise the variable `GIT_TAG` is undefined, and the variable
`GIT_REF` is set to the current's branch

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
@dduportal dduportal merged commit 44e6ff9 into main Jan 29, 2021
@dduportal dduportal deleted the hotfix/fix-tag-deploy branch January 29, 2021 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant