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

ci: build and push copa-extension image on release #726

Merged

Conversation

ashnamehrotra
Copy link
Contributor

@ashnamehrotra ashnamehrotra commented Jul 31, 2024

Describe the changes in this pull request using active verbs such as Add, Remove, Replace ...
Adds step to build and push new copa-extension image on each copa release.
Related to project-copacetic/copa-extension#5

Closes #725

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.46%. Comparing base (bc2ca54) to head (3c32c02).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #726   +/-   ##
=======================================
  Coverage   47.46%   47.46%           
=======================================
  Files          18       18           
  Lines        1677     1677           
=======================================
  Hits          796      796           
  Misses        826      826           
  Partials       55       55           

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

- name: Build and push copa-extension image with new version
run: |
tag="$(echo "${{ github.ref }}" | tr -d 'refs/tags/v')"
docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg copa_version=${tag} -t copa-extension container/copa-extension
Copy link
Member

Choose a reason for hiding this comment

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

tag doesn't look right, is this correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it should parse the tag the same way when running the ci, its following the same approach as copa-action image https://github.com/project-copacetic/copacetic/blob/main/.github/workflows/release.yml#L58-L61

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

LGTM

@ashnamehrotra ashnamehrotra merged commit 7b26e85 into project-copacetic:main Aug 27, 2024
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[REQ] push new copa-extension image on each release
2 participants