Core Actions Reference
caution
This documentation is for an older version of Dagger, which is no longer actively maintained.
We encourage you to upgrade and refer to the documentation for the most current version.
If you cannot upgrade to the latest version, please contact us in the help forum on Discord. When contacting us, please let us know why you cannot move to the latest version. From there, our team will work with you on your use case.
Core Actions are primitives implemented by the Dagger Engine itself. They can be combined into higher-level composite actions. Their definitions can be imported in the dagger.io/dagger/core
package.
For more information about Dagger Actions, see Dagger Actions.
The following core actions are available:
Core Actions related to filesystem trees
Definition | File | Description |
---|---|---|
#Copy | fs.cue | Copy files between two filesystem trees |
#Diff | fs.cue | Extract the difference between two filesystems as its own file system |
#Merge | fs.cue | Merge multiple filesystem trees |
#Mkdir | fs.cue | Create a directory in a filesystem tree |
#ReadFile | fs.cue | Read the contents of a UTF-8 encoded file from a filesystem tree |
#Source | fs.cue | Access the source for the current CUE package |
#Subdir | fs.cue | Read a subdirectory from a filesystem tree |
#WriteFile | fs.cue | Write a file to a filesystem tree |
Core Actions related to secrets
Definition | File | Description |
---|---|---|
#DecodeSecret | secrets.cue | Decode a secret without leaking its contents |
#NewSecret | secrets.cue | Create a new a secret from a filesystem tree |
#TrimSecret | secrets.cue | Trim leading and trailing space characters from a secret |
Core Actions related to containers
Definition | File | Description |
---|---|---|
#Dockerfile | image.cue | Build a container image using a Dockerfile |
#Exec | exec.cue | Execute a command in a docker-compatible container |
#Export | image.cue | Export a docker image as a tar archive |
#Pull | image.cue | Download an image from a docker registry |
#Push | image.cue | Upload an image to a docker registry |
#Set | image.cue | Modify a docker image config |
Core Actions related to remote data sources
Definition | File | Description |
---|---|---|
#GitPull | git.cue | Download a repository from a remote git server |
#HTTPFetch | http.cue | Get a file from an HTTP server |