CI Images: Difference between revisions

From Thrive Developer Wiki
Jump to navigation Jump to search
(Created page with "Category:Programming This page has instructions on making new CI podman images. These are the rough steps: # Update the relevant Dockerfiles in "docker/ci" or the lint...")
 
(new instructions for C# scripts)
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
These are the rough steps:
These are the rough steps:


# Update the relevant Dockerfiles in "docker/ci" or the lint folder
# Update the CLI tools version mentioned in "doc/setup_instructions.md"
# Run build with docker or podman: "podman build ci" (in the correct folder)
# Update the relevant Dockerfile in "docker/ci" folder
# Tag the result with the needed name. For example: "podman tag 6534b9b707fe9c1f05bc62545eb36ba14d3d6ddeff04870fef402c1ba08a4d0e thrive/godot-ci:v8"
# Run build with podman: <code>dotnet run --project Scripts -- container 20</code> Update the number "20" with the version of the image you want to make
# Save the image as a file (replace ":" with "_" in the file name): "podman save thrive/godot-ci:v8 -o godot-ci_v8.tar.xz"
# If the command succeeded the image should have been built and saved in the "docker" folder, for example as "godot-ci_v20.tar.xz"
# Now upload the created file to the right folder in the devcenter, the first part of the name before the slash needs to be a folder in: https://dev.revolutionarygamesstudio.com/files/CI/Images with the file from the previous step uploaded in that sub folder
# Now upload the created file to the right folder in the DevCenter, the first part of the image name before the slash needs to be a folder in: https://dev.revolutionarygamesstudio.com/files/CI/Images with the file from the previous step uploaded in that sub folder. For Thrive this means that the "godot-ci" starting image files need to be uploaded [https://dev.revolutionarygamesstudio.com/files/CI/Images/thrive here].
# Now you can modify the CI configuration to specify the new image and it should work
# Now you can modify the CI configuration to specify the new image and it should work

Latest revision as of 16:52, 5 September 2022


This page has instructions on making new CI podman images.

These are the rough steps:

  1. Update the CLI tools version mentioned in "doc/setup_instructions.md"
  2. Update the relevant Dockerfile in "docker/ci" folder
  3. Run build with podman: dotnet run --project Scripts -- container 20 Update the number "20" with the version of the image you want to make
  4. If the command succeeded the image should have been built and saved in the "docker" folder, for example as "godot-ci_v20.tar.xz"
  5. Now upload the created file to the right folder in the DevCenter, the first part of the image name before the slash needs to be a folder in: https://dev.revolutionarygamesstudio.com/files/CI/Images with the file from the previous step uploaded in that sub folder. For Thrive this means that the "godot-ci" starting image files need to be uploaded here.
  6. Now you can modify the CI configuration to specify the new image and it should work