CI: Shift workflows to local build, cleanup pipelines#2717
Conversation
|
|
||
| WORKDIR /app | ||
| COPY ${PACKAGE} ./ | ||
| RUN tar -xvzf ${PACKAGE} --strip-components 1 |
There was a problem hiding this comment.
This puts both on the image, the tar as well extracted versions, perhaps add another build state to have it clean?
| SUFFIX="" | ||
| CURRENT_BRANCH="" | ||
| if [ -z "$BUILD_VERSION" ] && [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo contrib/genbuild.sh; then | ||
| if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo contrib/genbuild.sh; then |
There was a problem hiding this comment.
Is there a specific reason to remove this?
There was a problem hiding this comment.
Skipping the dirty tag check when BUILD_VERSION is specified is incorrect in our previous docker build workflow because BUILD_VERSION was not passed on into the docker image itself which resulted in the defid version still being tagged as dirty. This was removed and reverted because with CI on local builds inside the runner, build should be clean and there is no need to explicitly skip the check.
In addition, BUILD_VERSION specified in CI will vary depending on if it is a tagged commit. Thus on build-release workflow, it should be passed directly as BUILD_DESC, while on merge to master, BUILD_VERSION should be defined as BUILD_SUFFIX. It would be easier to simply revert back to the old genbuild pipeline, which will resolve the incorrect dirty tag once we shift our build locally.
Summary
This PR is the first part of the CI workflow cleanup.
Implications
Storage
Consensus