Skip to content

Modular logistics and supply chain operating system (LSOS)

updated github ci workflow to publish to dockerhub

Ronald A. Richardson458f82b2944f
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 73d185c1..ad5043ff 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,3 +28,29 @@ jobs:
- name: Build and Start Docker Services
run: |
docker-compose up -d --build
+
+ publish:
+ if: startsWith(github.ref, 'refs/tags/')
+ name: Push Docker image to Docker Hub
+ needs: [build]
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out the repo
+ uses: actions/checkout@v2
+
+ - name: Get the version
+ id: get_version
+ run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
+
+ - name: Log in to Docker Hub
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKER_HUB_USERNAME }}
+ password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
+
+ - name: Build and push Docker image
+ uses: docker/build-push-action@v2
+ with:
+ context: .
+ push: true
+ tags: your-dockerhub-username/your-repo-name:${{ steps.get_version.outputs.VERSION }}
diff --git a/console b/console
index b550d5fb..ed54e50d 160000
--- a/console
+++ b/console
@@ -1 +1 @@
-Subproject commit b550d5fbab2e64dfefb6072b2a1d68814613eaa8
+Subproject commit ed54e50dfa389fd318b650c8548f1096eb1f762b
diff --git a/docs/api-reference b/docs/api-reference
index 22f0b81c..632bf97f 160000
--- a/docs/api-reference
+++ b/docs/api-reference
@@ -1 +1 @@
-Subproject commit 22f0b81cff8afa25ac5680d26fd31fbac0017e27
+Subproject commit 632bf97f1fa2bfbcd54dcf998edd5a4864268894
diff --git a/docs/guides b/docs/guides
index 0287cf49..479ca400 160000
--- a/docs/guides
+++ b/docs/guides
@@ -1 +1 @@
-Subproject commit 0287cf49c01921739b27742c1a30ab95ed20d96b
+Subproject commit 479ca400c46100f7c7b9cd4b2d86667565e457d0