-
Notifications
You must be signed in to change notification settings - Fork 454
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
Upgrading Build Workflow to publish Docker Images on each Release #527
Upgrading Build Workflow to publish Docker Images on each Release #527
Conversation
for different python versions
Hey this is great! One request tho - can you revert to separate workflows (scan_nginx_server.yml, etc.). They were separate by design. Once you've done that I will take a look again but overall it looks good! Thanks, |
8e95ded
to
e601018
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I asked for a couple more small changes and then this should be good to go. Thanks!
in all scan workflows
due to PR Review Feedback
race conditions during release process with pip
@nabla-c0d3 ready when you are 🙂 |
Thank you! |
@rseedorff I tried to trigger the workflow just now by creating the "test-docker-release-1" git tag, but nothing happened. The workflow was not triggered. What am I doing wrong? Thanks! |
@nabla-c0d3 First of all it is necessary to define the repo secrets mentioned in my PR description. Hint 1: on:
push:
release:
types: [released]
Hint 2: # Only release on a new tag that is a version number.
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+' I found this solution here: |
@rseedorff Thanks! I just tried and it looks like it worked 😀: https://hub.docker.com/r/nablac0d3/sslyze/tags?page=1&ordering=last_updated (from https://github.com/nabla-c0d3/sslyze/releases/tag/test-docker-release-1). One thing tho: the tag in Dockerhub should have the same name as the tag (or release name) in GitHub. Hence in Dockerhub, the above tag should have been called test-docker-release-1, but instead it is called "sha-7e16dc0". Any ideas on how to send the proper tag name to Dockerhub? It can also be the release name (in SSLyze tag name and release name are the same). |
Hi @nabla-c0d3, great news 🎉
The second tag definition is based on the semver string format (https://github.com/docker/metadata-action#typesemver) and uses your release tag for that ({{version}}):
Since your tag name |
Hi @rseedorff , Thank you and sounds good. I will then try it with the next release, which will be properly formatted (it will be 5.0.0). It looks like we are good to go 👍 |
This PR if applied closes #521 by upgrading the sslyze repository GitHub Actions and Workflows.
Updated the Docker Image to the newest Python image
3.9-slim
and switched the installation process to a source based instead of pip to prevent race conditions in the release processAdded a new release pipeline which will be triggered with every new GitHub release to publish the corresponding Docker Image to DockerHub. To get this work you have to add 3 new repository secrets with the namespace and a docker user with
red & write
permission for the docker repository:nablac0d3
nablac0d3
I tested the release pipeline already within our fork successfully (with our project docker repo instead): https://github.com/secureCodeBox/sslyze/runs/3722635578?check_suite_focus=true