-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make Docker workflows more adjustable #42
Comments
You can currently change the codex image being used by setting the |
Any progress on this? It would be really convenient if |
Not yet, sorry for such a delay. Will change my priorities, but need to finish some stuff around. |
There is another way to optimize workflows using Creating a composite action. But accordingly to the How to start using reusable workflows with GitHub Actions, they are limited for usage with Secrets, Platforms, Conditions and in our case we need to push images using secrets and create builds for amd64/arm64. Information about composite action limitations maybe not up to date, but we are continuing with reusable workflows. |
This is exactly our case - Multi-platform image with GitHub Actions/Distribute build across multiple runners, but for some reason it doesn't work as expected. Need to check why push by digest works but image creation doesn't. |
Thanks a lot, Slavas! I should be able to get around to testing this tomorrow 👍 |
I see, this was a test workflow to be applied to the images, got it. I'll test once the |
Eric, I'm working that now to make it reusable and to handle cases like IMAGE_LATEST: true
IMAGE_SHA: false
IMAGE_SUFFIX: custom
IMAGE_SUFFIX_ONLATEST: false Should be done today. |
First PR is ready and it is about nim-codex. It probably make sense to set
|
And some notes about latest tag usage DockerWe should use docker run --rm --pull=always codexstorage/test:latest codex --version KubernetesWe should set ---
apiVersion: v1
kind: Pod
metadata:
name: dist-tests-runner
namespace: cs-codex-dist-tests
labels:
name: cs-codex-dist-tests
spec:
containers:
- name: cs-codex-dist-tests
image: codexstorage/cs-codex-dist-tests:lates
imagePullPolicy: Always Also, we can just skip that policy and Kubernetes will use
But in our case with Dist-Tests, we are planning to have
Reference |
Very nice work @veaceslavdoina !! I will review this more closely tomorrow. |
One more question - should we consider to use just a
I was mostly focused on the The question is coming from the comparison of the |
I definitely agree with this, as it will provide the ability to downgrade in case
As long as the sha + custom label exists, eg My opinion is that we would have a maximum of 4 images produced depending on the config params:
|
Looks like I've already did it and replaced All PR's were approved and merged and we can consider that as solved for now. |
Intro
The idea is coming from @emizzle and basically it is about to make existing Docker workflow more adjustable by passing build parameters and also use
latest
tag for every buildlatest
tag for all builds and distinguish them by nameAnd we also should take care about how to identify which GitHub commit was used for the latest tag. One of the way to do that is to push tags with short sha as well, like we are doing it right now.
But in case when we would like to identify
latest
tag over the time it might be required to perform a check based on the image usage and push time.Progress
The text was updated successfully, but these errors were encountered: