Skip to content

Commit 70f7a9a

Browse files
committed
update readme
1 parent c662125 commit 70f7a9a

1 file changed

Lines changed: 37 additions & 2 deletions

File tree

README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
1-
# mender-docker-compose
2-
A Docker Update Module to handle Docker image updates with docker arguments.
1+
# Mender Docker Compose Artifact
2+
This action allows you to create mender artifacts to deploy docker containers using docker compose.
3+
Refer [mender](https://mender.io/)
4+
5+
# Usage
6+
See [action.yml](action.yml)
7+
See [upload-artifact](https://github.com/actions/upload-artifact)
8+
9+
### Create Artifact
10+
```yaml
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- id: mender
15+
name: Create mender artifact
16+
uses: actions/mender-docker-compose@v1
17+
with:
18+
compose-file: "docker-compose.yml"
19+
software-name: "project-name"
20+
21+
- name: Upload mender artifact
22+
uses: actions/upload-artifact@v2
23+
with:
24+
name: project-artifact
25+
path: ${{ steps.mender.outputs.artifact-file }}
26+
```
27+
Here we specify the filename for the docker compose file that contains
28+
all the details needed to build the docker containers.
29+
We also need to specify the software name as this is used by docker compose to mark the containers.
30+
31+
GitHub's upload-artifact action can be used to upload to created artifact to github.
32+
33+
## Where does the upload go?
34+
At the bottom of the workflow summary page, there is a dedicated section for artifacts.
35+
36+
# License
37+
The scripts and documentation in this project are released under the [Apache License](LICENSE)

0 commit comments

Comments
 (0)