Better would be to separate the release and deploy aspects into distinct triggers - as well as have it release a specific image - but this is a good first pass.