Publish new version in platform¶
Just run the following SQL in the database:
insert into [sec-saas].SecurityVersion (Version, ImagesTag, HelmChartVersion, PublishedDate) values
('<version>', '<tag>', '<helm-version>', 'YYYY-MM-DD HH:MM:SS.0000000')
Our SaaS Env
The SQL Server is SA-K8S-MSSQL\MSSQL2017
and the database is saas
👌
How to get the Helm Chart version of a release¶
Go to Source/Deployment/helm/security
and open the file called Chart.yaml. The property version
in the yaml file indicates the Helm Chart version.
How to get the version of a release¶
Just grab the version from the Master Build but without the .stable
part: 1.61.20275.01.stable
becomes 1.61.20275.01
.
How to get the published date¶
Just check when the Master Build run and put something near that :)
How to get the images tag¶
In the Master Build, look for the Push services step and open the logs of it. In the first lines, should be one that starts with [command]
(maybe around line 11). In that line, go to the end of it and you will see the tag of the image:
...
de689dcf-b051-4653-8605-04c5748d50d6 exists true
e36e269d-f3ae-4dcd-8ee5-c5cdec764318 exists true
[command]"C:\Program Files\Docker\docker.exe" -H tcp://tfsdockerl.office.sbs:2376 --tls --tlscacert='.dockercerts\ca.pem' --tlscert='.dockercerts\cert.pem' --tlskey='.dockercerts\key.pem' push docker.sequel.com/security/admin:1.61.20273.01.stable
The push refers to repository [docker.sequel.com/security/admin]
d7d8b0a05014: Preparing
c6151278908b: Preparing
...
The tag from above example is 1.61.20273.01.stable
(the text after the :
).
This can also be seen near the last lines of the log:
...
f9e2dd402711: Pushed
702be494be68: Pushed
1.61.20273.01.stable: digest: sha256:0566064d6c6644c5cc77c8bda4a4afb285bd5a46b0f41478adb8e98848c86357 size: 3463
##[section]Finishing: Push services