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

Use publish-image action #7022

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

brooksn
Copy link
Contributor

@brooksn brooksn commented Oct 11, 2024

Proposed Changes

  • Updates the release workflow to use the publish-image action to run image/manifest push scripts
  • Pushes images directly to the prime registry
  • Moves the windows image push into a separate step
  • Adds SBOM to image manifests

Types of Changes

Verification

Testing

Linked Issues

rancher/ecm-distro-tools#481

User-Facing Change


Further Comments

@brooksn brooksn requested a review from a team as a code owner October 11, 2024 17:49
make-target: publish-image-runtime

public-repo: rancher
public-username: ${{ env.DOCKER_USERNAME }}

Choose a reason for hiding this comment

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

Should we use secrets for all the sensitive data?

          public-repo: rancher
          public-username: ${{ secrets.DOCKER_USERNAME }}
          public-password: ${{ secrets.DOCKER_PASSWORD }}
          prime-repo: rancher
          prime-registry: ${{ secrets.PRIME_REGISTRY }}
          prime-username: ${{ secrets.PRIME_REGISTRY_USERNAME }}
          prime-password: ${{ secrets.PRIME_REGISTRY_PASSWORD }}

Copy link
Contributor

Choose a reason for hiding this comment

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

We're getting those values from vault, the "Read secrets" step will retrieve them from vault and set it as envs. The Github CI will mask those, so no secrets leak.

docker manifest push ${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}

if [ -n "$IID_FILE_FLAG" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Please stay consistent with the use of parenthesis and curly braces for make and shell variables.

Signed-off-by: Brooks Newberry <brooks@newberry.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 17.75%. Comparing base (deedde3) to head (c9c859e).
Report is 1 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (deedde3) and HEAD (c9c859e). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (deedde3) HEAD (c9c859e)
inttests 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7022      +/-   ##
==========================================
- Coverage   25.11%   17.75%   -7.36%     
==========================================
  Files          33       32       -1     
  Lines        2839     2827      -12     
==========================================
- Hits          713      502     -211     
- Misses       2079     2283     +204     
+ Partials       47       42       -5     
Flag Coverage Δ
inttests ?
unittests 17.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Brooks Newberry <brooks@newberry.com>
Signed-off-by: Brooks Newberry <brooks@newberry.com>
DOCKER_BUILDKIT=${DOCKER_BUILDKIT:-1} docker image build \
--sbom=true \
--builder ${PROG} \
${IID_FILE_FLAG} \
Copy link
Member

Choose a reason for hiding this comment

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

What is this flag, and where does the env var setting it come from?

Signed-off-by: Brooks Newberry <brooks@newberry.com>
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.

6 participants