File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 9999
100100 - name : Publish Containers
101101 if : ${{ matrix.os == 'ubuntu-latest' }}
102+ env :
103+ DOCKER_NO_PUBLISH : true
102104 run : dotnet run --project build -c release -- publishcontainers
103105
104106 - name : Run Container
Original file line number Diff line number Diff line change @@ -104,13 +104,14 @@ let private publishContainers _ =
104104 " -p" ; $" ContainerImageTags=\" %s {labels};%s {Software.Version.Normalize()}\" "
105105 " -p" ; $" ContainerRepository=elastic/%s {project}"
106106 ]
107+ let noPublish = Environment.environVarOrNone " DOCKER_NO_PUBLISH"
107108 let registry =
108- match ( ci, pr) with
109- | Some _, None -> [
109+ match ( ci, pr, noPublish ) with
110+ | Some _, None, None -> [
110111 " -p" ; " ContainerRegistry=ghcr.io"
111112 " -p" ; " ContainerUser=1001:1001" ;
112113 ]
113- | _, _ -> []
114+ | _ -> []
114115 exec { run " dotnet" ( args @ registry) }
115116 createImage " docs-builder"
116117 createImage " docs-assembler"
You can’t perform that action at this time.
0 commit comments