Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/build-ui-image.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions ui/nginx.cfg/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server {
root /usr/share/nginx/html;

location = / {
absolute_redirect off;
return 301 /nodeIDs;
}
location /nodeIDs {
Expand Down