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

Create Actions job for uploading container image to Harbor #368

Merged
merged 9 commits into from
May 30, 2022

Conversation

VKTB
Copy link
Contributor

@VKTB VKTB commented May 23, 2022

This PR will close #355

Description

The docker job introduced in this PR triggers only if all the other jobs in the CI workflow succeed and the things that it does depend on the context. It has been configured to always build the Docker image (not only on pushes to the k8s-deployment) but only push the image to Harbor if something is pushed to the k8s-deployment branch. The former allows to verify whether the Docker image is successfully building during PRs whereas the latter ensures that the image is not pushed during PRs as the proposed changes may be rejected in the end.

I have added TODOs to remind us to change the references of k8s-deployment branch to main in the CI workflow file once the k8s-deployment branch has been merged into main.

Testing Instructions

  • Review code
  • Check GitHub Actions build
  • If icatdb Generator Script Consistency Test CI job fails, is this because of a deliberate change made to the script to change generated data (which isn't actually a problem) or is here an underlying issue with the changes made?
  • Review changes to test coverage

@codecov
Copy link

codecov bot commented May 23, 2022

Codecov Report

Merging #368 (02c9432) into k8s-deployment (c674205) will not change coverage.
The diff coverage is n/a.

@@               Coverage Diff               @@
##           k8s-deployment     #368   +/-   ##
===============================================
  Coverage           94.47%   94.47%           
===============================================
  Files                  39       39           
  Lines                3114     3114           
  Branches              311      311           
===============================================
  Hits                 2942     2942           
  Misses                144      144           
  Partials               28       28           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c674205...02c9432. Read the comment docs.

@VKTB VKTB changed the base branch from main to k8s-deployment May 23, 2022 14:26
@VKTB
Copy link
Contributor Author

VKTB commented May 23, 2022

The docker job is failing because it cannot find the Dockerfile. This will be on the k8s-deployment branch and the job will pass once #367 is merged.

@VKTB VKTB marked this pull request as ready for review May 23, 2022 14:50
@VKTB VKTB requested a review from moonraker595 May 23, 2022 14:50
Copy link

@moonraker595 moonraker595 left a comment

Choose a reason for hiding this comment

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

Looks good

@VKTB VKTB changed the title Deployment/push docker image to harbor #355 Create Actions job for uploading container image to Harbor May 30, 2022
@VKTB VKTB merged commit c870b3e into k8s-deployment May 30, 2022
@VKTB VKTB deleted the deployment/push-docker-image-to-harbor-#355 branch May 30, 2022 12:04
@VKTB VKTB mentioned this pull request May 31, 2022
7 tasks
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.

Create Actions workflow for uploading container image to Harbor
2 participants