From e5dd7e194a79194d68cb23d212b8be87f32c0221 Mon Sep 17 00:00:00 2001 From: sigarus Date: Mon, 15 Apr 2024 17:21:52 +0300 Subject: [PATCH 1/2] sergic --- .github/workflows/build-ui-image.yaml | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build-ui-image.yaml diff --git a/.github/workflows/build-ui-image.yaml b/.github/workflows/build-ui-image.yaml new file mode 100644 index 00000000..bc63446b --- /dev/null +++ b/.github/workflows/build-ui-image.yaml @@ -0,0 +1,38 @@ +name: Build UI and Test + +# This workflow will run on master branch and on any pull requests targeting master +on: + push: + tags: + - 'v*' +jobs: + build-and-push-docker-ui-image: + name: Build and push UI Docker image + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Get tag + id: tag + run: echo "TAG=$(git describe --tags HEAD)" >> $GITHUB_OUTPUT + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build image and push to Docker Hub + uses: docker/build-push-action@v2 + with: + context: ./ui/ + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ github.repository }}-ui:${{ steps.tag.outputs.TAG }},${{ github.repository }}-ui:latest \ No newline at end of file From 85f4ba5a271491cd236112000b84aae960ccc34e Mon Sep 17 00:00:00 2001 From: sigarus Date: Wed, 15 May 2024 14:32:49 +0300 Subject: [PATCH 2/2] sergic --- ui/nginx.cfg/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/nginx.cfg/nginx.conf b/ui/nginx.cfg/nginx.conf index cc739e66..a8e14589 100644 --- a/ui/nginx.cfg/nginx.conf +++ b/ui/nginx.cfg/nginx.conf @@ -4,6 +4,7 @@ server { root /usr/share/nginx/html; location = / { + absolute_redirect off; return 301 /nodeIDs; } location /nodeIDs {