File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ inputs:
4545 description : ' Pre warm command to run inside the container'
4646 required : false
4747 default : ' echo "warming up!"'
48-
48+ username :
49+ description : ' Docker username.'
50+ required : false
51+ repository :
52+ description : ' Docker repository.'
53+ required : false
4954
5055runs :
5156 using : " composite"
6267 ${{github.action_path}}/src/parse_input_paths.ps1 -githubWorkSpace "${{ github.workspace }}" -workspacePath "@${{ inputs.workspace_path }}" -mappingPath "@${{ inputs.mapping_path }}" -workPath "@${{ inputs.work_path }}";
6368 ${{github.action_path}}/src/parse_input_extra_args.ps1 -envNames "@${{ inputs.env_names }}" -entryPoint "@${{ inputs.entrypoint }}" -extraArgs "@${{ inputs.extra_args }}";
6469 shell : powershell
70+ - name : docker_login
71+ id : docker_login
72+ shell : powershell
73+ run : >-
74+ echo ${{ secrets.docker_secret }} | docker login ${{ inputs.repository }} -u ${{ inputs.username }} --password-stdin
6575 - name : Pre-warm
6676 if : inputs.pre-warm == 'true'
6777 run : |
8494 ${{ inputs.run }}
8595 }
8696 shell : powershell
97+ - name : docker_logout
98+ id : docker_logout
99+ shell : powershell
100+ run : >-
101+ docker logout ${{ inputs.repository }}
You can’t perform that action at this time.
0 commit comments