Skip to content

koendelaat/run-windows-docker-container-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Action for running commands in a windows docker

State

Test

Description

Composite action for running commands in windows docker containers.

Usage

Very simple hello world example:

    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Test_Run
        uses: philips-software/run-windows-docker-container-action@<version>
        with:
          image: mcr.microsoft.com/windows/servercore:20H2
          entrypoint: powershell.exe
          run: >-
            echo "Hello world";
            ./run-test-script.ps1;

On default, the github workspace directory is mapped to the docker volume path and work path.

Inputs

parameter description required default
image Docker image. true
run Command to execute. true
workspace_path Workspace path. Default is root workspace path. false
mapping_path Mapping path, i.e. path to where the workspace path is mapped in the docker container. Defaults to workspace_path. false
work_path Work path, i.e. path where the command in the docker container is executed. Defaults to workspace_path. false
memory Memory limit. See docker documentation on --memory. false 4GB
entrypoint Overrides the default ENTRYPOINT in docker image. false
env_names Environment variable names passed to docker image as comma separated list, for example: NAME1, NAME2, NAME3 false
extra_args Extra arguments for docker run command. false

Runs

This action is a composite action.

Contributing

Please refer to our Contributing guide when you want to contribute to this project.

License

Run-Windows-Docker-Container is licenced under the MIT license. See LICENSE file.

About

Action to run windows containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%