Deploy Files
A simple way to get one or more files quickly onto your IoT device is to use the Deploy Files action block in a JFrog Connect workflow.
Overview
The Deploy Files action block enables the quick distribution of one or more artifacts to your devices. To deliver the files, the action block facilitates a two-step process:
Upload of the requested artifacts to Artifactory.
Devices pull the artifacts from Artifactory.
This functionality is primarily utilized for swift deployment of specific files or binaries to your devices, eliminating the necessity to upload them beforehand.
Prerequisites
JFrog Connect and JFrog Platform accounts. (You receive a JFrog Platform account automatically when you register for a JFrog Connect account.)
Connect Agent 6.0 or later and at least one device registered.
One or more files ready for deployment.
Drag the Action Block
To include the Deploy Files action block in your update flow, do the following:
Go to Updates in the left sidebar and click Create Update Flow.
![](https://docs.connect.jfrog.io/~gitbook/image?url=https%3A%2F%2F277820124-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fno90ERfnEvYz3FgeyP07%252Fuploads%252FubADm5YZnxEsxYFxRYdY%252Fimage-update-01.png%3Falt%3Dmedia%26token%3Da681c631-cb63-4149-bf6c-e64c076061aa&width=768&dpr=4&quality=100&sign=e5c02397&sv=1)
Drag the Deploy Files action block and drop it in the workflow.
![](https://docs.connect.jfrog.io/~gitbook/image?url=https%3A%2F%2F277820124-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fno90ERfnEvYz3FgeyP07%252Fuploads%252FGewIW4zGjq6psxnap9Z5%252Fdeploy-files-01a.png%3Falt%3Dmedia%26token%3D9e427078-e278-496d-9c92-ec06f848aceb&width=768&dpr=4&quality=100&sign=f2bd8178&sv=1)
Configure the Action Block
Click the action block to open and configure it.
Enter a name for the action block.
Enter (drag and drop or browse) the file in the file box.
![](https://docs.connect.jfrog.io/~gitbook/image?url=https%3A%2F%2F277820124-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fno90ERfnEvYz3FgeyP07%252Fuploads%252FRcnMbTamOIciMsP4ElqS%252Fdeploy-files-02a.png%3Falt%3Dmedia%26token%3D4037291a-f3c8-415f-a868-8fde2bd23714&width=768&dpr=4&quality=100&sign=b366b5e2&sv=1)
Enter the destination path on the device. You can also make this a variable, for example {{destination-path-on-device}}. You will then enter the value for the variable upon deployment.
If you want to deliver more than one file, click Add More. Add an additional row for each additional file to deliver.
Configure your On Failure policy and instructions for rolling back, if necessary.
Save your action block configuration.
What’s Next?
Learn how to deliver containers to your IoT devices using the Deploy Container action block.
Last updated