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 image tag in s2i-builder circle CI job #666

Merged
merged 1 commit into from
Apr 13, 2018

Conversation

davidor
Copy link
Contributor

@davidor davidor commented Apr 13, 2018

The circle CI job s2i-builder is failing in PRs. See #665 , for example.

The problem is that in PRs we're trying to create a docker image using an invalid tag. CIRCLE_BRANCH includes a '/'. For example, for PR 567, it equals pull/567, and we are using it as a tag. That's an issue because, in Docker, tags cannot contain '/'.

This commits fixes the issue by using only the PR number.

If the s2i-builder check passes in this PR, it means that the issue is solved.

The problem is that in PRs, `CIRCLE_BRANCH` includes a '/'. For example,
for PR 567, it equals `pull/567`. That's an issue because in Docker,
tags cannot contain '/'.

This commits fixes the issue by using only the PR number.
@davidor davidor force-pushed the fix-image-tag-s2i-builder-job branch from 0d65014 to 50ce8ba Compare April 13, 2018 12:57
@davidor davidor changed the title [WIP] Fix image tag in s2i-builder circle CI job Fix image tag in s2i-builder circle CI job Apr 13, 2018
@davidor davidor requested a review from mikz April 13, 2018 13:05
Copy link
Contributor

@mikz mikz left a comment

Choose a reason for hiding this comment

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

👍

@davidor davidor merged commit 266b411 into master Apr 13, 2018
@davidor davidor deleted the fix-image-tag-s2i-builder-job branch April 13, 2018 13:20
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.

2 participants