Skip to content

Instantly share code, notes, and snippets.

@orphefs
Created March 10, 2022 13:22
Show Gist options
  • Save orphefs/260561f261b1557cf92a5ec3a01fef11 to your computer and use it in GitHub Desktop.
Save orphefs/260561f261b1557cf92a5ec3a01fef11 to your computer and use it in GitHub Desktop.
sudo docker run -d --rm \ # delete container when finished
-v /var/run/docker.sock:/var/run/docker.sock \ # need to pass on the Docker daemon unix socket
-v $(pwd)/my-repo:/project \ # mount my-repo into /project inside container
-v $(pwd)/ci-logs:/logs \ # logs directory
-v $(pwd)/secret:/secret \ # mount secret/ directory into /secret directory inside container
-e ACTION=pull_request \ # our action (could be push, or something else)
github-actions-pipeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment