You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At least on release/tag creation, we should provide a Github action to push containers to the quay.io registry. This could be achieved with the following changes in the current CI action (QUAY_IO_PASSWORD and QUAY_IO_USERNAME have already been added to the Github repo config):
on:
push:
...tags:
- 'v*'...
- name: Get subsystemsrun: | # https://github.com/actions/toolkit/issues/766 shopt -s expand_aliases eval $(make alias) nvmeof-cli get_subsystems# If the CI was OK, then let's push the container images
- name: Publish new containersif: startsWith(github.ref, 'refs/tags/v')run: | docker login -u="${{ vars.QUAY_IO_USERNAME }}" -p="${{ secrets.QUAY_IO_PASSWORD }}" make push...
Or this, if we only want to publish containers for releases (and not for every tag):
on:
release:
types: [created]...# If the CI was OK, then let's push the container images
- name: Publish new containersif: github.event_name == 'release' && github.event.action == 'created'run: | docker login -u="${{ vars.QUAY_IO_USERNAME }}" -p="${{ secrets.QUAY_IO_PASSWORD }}" make push...
This process still requires the manual step of increasing the version number in:
.env: NVMEOF_VERSION
pyproject.toml: version
It'd be ideal if we can remove the version literals from those files and dynamically feed the version number from the last git tag with git describe --tag --abbrev=0.
At least on release/tag creation, we should provide a Github action to push containers to the quay.io registry. This could be achieved with the following changes in the current CI action (
QUAY_IO_PASSWORD
andQUAY_IO_USERNAME
have already been added to the Github repo config):Or this, if we only want to publish containers for releases (and not for every tag):
This process still requires the manual step of increasing the version number in:
.env
:NVMEOF_VERSION
pyproject.toml
:version
It'd be ideal if we can remove the version literals from those files and dynamically feed the version number from the last git tag with
git describe --tag --abbrev=0
.References:
The text was updated successfully, but these errors were encountered: