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

Docker Image: Fix release tag in publish workflow #6520

Merged
merged 1 commit into from
Jul 5, 2024
Merged

Conversation

danielhollas
Copy link
Collaborator

@danielhollas danielhollas commented Jul 5, 2024

Fixes #6510.

Looks like this works, see this test run which generated the aiida-2.6.x-test tag on ghcr.io.

@danielhollas danielhollas marked this pull request as ready for review July 5, 2024 12:20
@danielhollas danielhollas changed the title WIP: Docker: Fix release tag Docker Image: Fix release tag in publish workflow Jul 5, 2024
@danielhollas danielhollas requested a review from sphuber July 5, 2024 12:50
@sphuber
Copy link
Contributor

sphuber commented Jul 5, 2024

Looks good to me. @unkcpz can you also have a quick check to see that this makes sense? Thanks

Copy link
Member

@unkcpz unkcpz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
run: |
tag="${{ github.ref_name }}"
echo "AIIDA_VERSION=${tag#v}" >> $GITHUB_OUTPUT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume ${tag#v} is drop v in front, correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep.

@sphuber sphuber merged commit c740b99 into main Jul 5, 2024
26 checks passed
@sphuber sphuber deleted the docker-fix-tag branch July 5, 2024 14:53
mikibonacci pushed a commit to mikibonacci/aiida-core that referenced this pull request Sep 3, 2024
The `AIIDA_VERSION` variable was no longer present in the env.
It is now retrieved separately from the tag version.
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.

AIIDA_VERSION was removed from build.json
3 participants