CompositionalIT / farmer

Repeatable Azure deployments with ARM templates - made easy!
https://compositionalit.github.io/farmer
MIT License
523 stars 157 forks source link

Enable the docker image tag to be specified for a slot. #1016

Closed ninjarobot closed 1 year ago

ninjarobot commented 1 year ago

This PR closes #1005

The changes in this PR are as follows:

I have read the contributing guidelines and have completed the following:

If I haven't completed any of the tasks above, I include the reasons why here:

Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure:

webApp {
    name "my-webapp-2651A324"
    sku (Sku.Standard "S1")
    // Production using one image tag.
    docker_image "nginx:1.22.1" ""

    add_slots
        [
            appSlot {
                name "staging"
                // The slot is staging a newer image tag.
                docker_image "nginx:1.23.1" ""
            }
        ]
}
ninjarobot commented 1 year ago

@forki this will allow you to set the container image for a slot so that you can switch to a container from a new tagged image by swapping slots. Please give it a review and let me know if this meets your needs for #1005.

The production site:

production slot

The staging slot:

image
ninjarobot commented 1 year ago

@isaacabraham here's a fix for the issue @forki brought up recently.