From 114c462271ef0c0ca688aed8144a33783c94a913 Mon Sep 17 00:00:00 2001 From: Anton Shepilov Date: Tue, 10 Oct 2023 17:11:49 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20publish=20to=20dockerhub=20(#229?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-backend.yml | 11 +++++++++++ .github/workflows/publish-frontend.yml | 10 ++++++++++ docker-compose.yml | 4 ++-- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-backend.yml b/.github/workflows/publish-backend.yml index e23fd895..e6766925 100644 --- a/.github/workflows/publish-backend.yml +++ b/.github/workflows/publish-backend.yml @@ -43,3 +43,14 @@ jobs: target: production buildoptions: "-t docker-registry.linagora.com/tdrive/tdrive-node -f docker/tdrive-node/Dockerfile" tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}" + - name: Publish to dockerhub + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: twakedrive/tdrive-node + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + workdir: tdrive + context: . + target: production + buildoptions: "-t twakedrive/tdrive-node -f docker/tdrive-node/Dockerfile" + tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}" diff --git a/.github/workflows/publish-frontend.yml b/.github/workflows/publish-frontend.yml index 0fac6d6a..d3efca4d 100644 --- a/.github/workflows/publish-frontend.yml +++ b/.github/workflows/publish-frontend.yml @@ -72,3 +72,13 @@ jobs: workdir: tdrive buildoptions: "-t docker-registry.linagora.com/tdrive/tdrive-frontend -f docker/tdrive-frontend/Dockerfile" tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}" + - name: Publish to dockerhub + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: twakedrive/tdrive-frontend + registry: docker-registry.linagora.com + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + workdir: tdrive + buildoptions: "-t twakedrive/tdrive-frontend -f docker/tdrive-frontend/Dockerfile" + tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}" diff --git a/docker-compose.yml b/docker-compose.yml index 9127b1da..a0405c8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: - tdrive_network node: - image: docker-registry.linagora.com/tdrive/tdrive-node + image: twakedrive/tdrive-node hostname: tdrive_node environment: - DEV=production @@ -26,7 +26,7 @@ services: - tdrive_network fronend: - image: docker-registry.linagora.com/tdrive/tdrive-frontend + image: twakedrive/tdrive-frontend environment: - DEV=production - SSL_CERTS=selfsigned