-
Notifications
You must be signed in to change notification settings - Fork 21
dgr push does not use aci version information #189
Comments
Run it as 2 separate commands for the moment $ dgr clean build --set-env=VERSION=1.2.3
$ dgr push I will have a look |
Thanks for having a look. Is it supposed to work at all this way? Maybe my assumptions are wrong. Here are some further observations.
The log statement that shows a version is stated in the build step.
This seems to be created in bin-dgr/aci-build.go
The other entries seem to be generated by a statement like: What I noticed is, that for build, the log output states:
for push, it states:
It seems like the template is not working in the push step. |
Are you talking about It's normal that during the build logs are using |
I was running it as |
I have just tested with acserver and it's working. Does #190 confuse you on the source of the problem ? |
Yes, I was confused by the log output. I checked again, using the instructions listed here: https://github.com/blablacar/dgr#push-an-aci-and-run-from-repository. Build & push now works either way: I checked the (locally) uploaded aci with: So this issue is fixed. Thank you very much! One further question: the uploaded aci (within acserver) showed up aci-dummy-latest-linux-amd64.aci, whereas I have expected to find aci-dummy-1.2.3-linux-amd64.aci on the acserver. Fetching the image with |
I can see a request made to: |
For a continuous delivery pipeline, I want to be able to set the aci-version at build time to an arbitrary value.
Guided by this example, I added a runlevels/build/10.install.sh script that contains:
and used a placeholder in the aci-manifest.yml:
When I run
dgr clean push --set-env=VERSION=1.2.3
, the build is working as intented and creates an ACI namedaci.example.com/aci-dummy:1.2.3
However, the push does not seem to pick up the version, it tries to works on
aci.example.com/aci-dummy:<no value>
instead.The text was updated successfully, but these errors were encountered: