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

Avoid docker production images overlapping between GHA and CircleCI #5528

Merged
merged 5 commits into from Oct 21, 2022

Conversation

beni0888
Copy link
Collaborator

@beni0888 beni0888 commented Oct 20, 2022

Signed-off-by: Jesús Benito Calzada bjesus@vmware.com

Description of the change

Right now, when Docker production images are generated from the GHA kubeapps general workflow, those are pushed to Docker Hub in the kubeapps workspace (eg. kubeapps/kubeapps-apis, kubeapps/dashboard, etc) and tagged with latest or the release version x.y.z, so they overlap with the ones generated in the CircleCI workflow that runs in parallel (until we finish the migration to GHA and decommission the CircleCI workflow). To avoid images from both workflows to overwrite each other, this PR adds a -gha suffix to the tag for the images generated from the GHA workflow (eg. kubeapps/dashboard:latest-gha).

Also, I took advantage of this PR to fix the step Show PR Context from the GHA kubeapps general workflow's setup job. This step is mainly for debugging purposes.

Benefits

  • Production images generated from each of the different workflows are clearly identifiable and don't overwrite each other.
  • The setup step of the GHA kubeapps general workflow works as expected.

Possible drawbacks

In case you want to use the images generated from GHA, you'll have to use a tag that doesn't follow the standard convention.

Applicable issues

Additional information

…from GHA in DEV_MODE

Signed-off-by: Jesús Benito Calzada <bjesus@vmware.com>
@beni0888 beni0888 added component/ci Issue related to kubeapps ci system github_actions Pull requests that update GitHub Actions code labels Oct 20, 2022
@beni0888 beni0888 added this to the Migrate CI to GitHub Actions milestone Oct 20, 2022
@beni0888 beni0888 self-assigned this Oct 20, 2022
@netlify
Copy link

netlify bot commented Oct 20, 2022

Deploy Preview for kubeapps-dev canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit a70f1af
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/635244c6b720d1000881830d

@beni0888 beni0888 marked this pull request as ready for review October 20, 2022 16:12
@beni0888 beni0888 mentioned this pull request Oct 20, 2022
30 tasks
… job (the production ones)

Signed-off-by: Jesús Benito Calzada <bjesus@vmware.com>
Signed-off-by: Jesús Benito Calzada <bjesus@vmware.com>
Signed-off-by: Jesús Benito Calzada <bjesus@vmware.com>
Copy link
Collaborator

@castelblanque castelblanque left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@beni0888 beni0888 merged commit c29bc1d into vmware-tanzu:main Oct 21, 2022
@beni0888 beni0888 deleted the improve-gha-push-images-job branch October 21, 2022 11:38
absoludity pushed a commit that referenced this pull request Feb 7, 2023
Bumps [axios](https://github.com/axios/axios) from 1.3.1 to 1.3.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/releases">axios's
releases</a>.</em></p>
<blockquote>
<h2>Release v1.3.2</h2>
<h2>Release notes:</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>http:</strong> treat <a
href="http://localhost">http://localhost</a> as base URL for relative
paths to avoid <code>ERR_INVALID_URL</code> error; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5528">#5528</a>)
(<a
href="https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c">128d56f</a>)</li>
<li><strong>http:</strong> use explicit import instead of TextEncoder
global; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5530">#5530</a>)
(<a
href="https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f">6b3c305</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+2/-1
([#5530](axios/axios#5530)
[#5528](axios/axios#5528) )">Dmitriy
Mozgovoy</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/blob/v1.x/CHANGELOG.md">axios's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/axios/axios/compare/v1.3.1...v1.3.2">1.3.2</a>
(2023-02-03)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>http:</strong> treat <a
href="http://localhost">http://localhost</a> as base URL for relative
paths to avoid <code>ERR_INVALID_URL</code> error; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5528">#5528</a>)
(<a
href="https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c">128d56f</a>)</li>
<li><strong>http:</strong> use explicit import instead of TextEncoder
global; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5530">#5530</a>)
(<a
href="https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f">6b3c305</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+2/-1
([#5530](axios/axios#5530)
[#5528](axios/axios#5528) )">Dmitriy
Mozgovoy</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/axios/axios/commit/0b449293fc238f30f39ab9ed0fca86a23c8a6a79"><code>0b44929</code></a>
chore(release): v1.3.2 (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5531">#5531</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f"><code>6b3c305</code></a>
fix(http): use explicit import instead of TextEncoder global; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5530">#5530</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c"><code>128d56f</code></a>
fix(http): treat <a href="http://localhost">http://localhost</a> as base
URL for relative paths to avoid `ER...</li>
<li>See full diff in <a
href="https://github.com/axios/axios/compare/v1.3.1...v1.3.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=axios&package-manager=npm_and_yarn&previous-version=1.3.1&new-version=1.3.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
absoludity pushed a commit that referenced this pull request Feb 9, 2023
Bumps [axios](https://github.com/axios/axios) from 1.3.1 to 1.3.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/releases">axios's
releases</a>.</em></p>
<blockquote>
<h2>Release v1.3.2</h2>
<h2>Release notes:</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>http:</strong> treat <a
href="http://localhost">http://localhost</a> as base URL for relative
paths to avoid <code>ERR_INVALID_URL</code> error; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5528">#5528</a>)
(<a
href="https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c">128d56f</a>)</li>
<li><strong>http:</strong> use explicit import instead of TextEncoder
global; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5530">#5530</a>)
(<a
href="https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f">6b3c305</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+2/-1
([#5530](axios/axios#5530)
[#5528](axios/axios#5528) )">Dmitriy
Mozgovoy</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/blob/v1.x/CHANGELOG.md">axios's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/axios/axios/compare/v1.3.1...v1.3.2">1.3.2</a>
(2023-02-03)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>http:</strong> treat <a
href="http://localhost">http://localhost</a> as base URL for relative
paths to avoid <code>ERR_INVALID_URL</code> error; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5528">#5528</a>)
(<a
href="https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c">128d56f</a>)</li>
<li><strong>http:</strong> use explicit import instead of TextEncoder
global; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5530">#5530</a>)
(<a
href="https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f">6b3c305</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+2/-1
([#5530](axios/axios#5530)
[#5528](axios/axios#5528) )">Dmitriy
Mozgovoy</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/axios/axios/commit/0b449293fc238f30f39ab9ed0fca86a23c8a6a79"><code>0b44929</code></a>
chore(release): v1.3.2 (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5531">#5531</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f"><code>6b3c305</code></a>
fix(http): use explicit import instead of TextEncoder global; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5530">#5530</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c"><code>128d56f</code></a>
fix(http): treat <a href="http://localhost">http://localhost</a> as base
URL for relative paths to avoid `ER...</li>
<li>See full diff in <a
href="https://github.com/axios/axios/compare/v1.3.1...v1.3.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=axios&package-manager=npm_and_yarn&previous-version=1.3.1&new-version=1.3.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required component/ci Issue related to kubeapps ci system github_actions Pull requests that update GitHub Actions code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants