mirror of
https://github.com/traefik/traefik.git
synced 2025-09-20 13:21:19 +02:00
Restore empty webui/static to use traefik as library
This commit is contained in:
parent
2023ffe2d3
commit
5f28c56437
5
.github/workflows/test-conformance.yaml
vendored
5
.github/workflows/test-conformance.yaml
vendored
@ -30,11 +30,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- name: Avoid generating webui
|
|
||||||
run: |
|
|
||||||
mkdir webui/static
|
|
||||||
touch webui/static/index.html
|
|
||||||
|
|
||||||
- name: K8s Gateway API conformance test and report
|
- name: K8s Gateway API conformance test and report
|
||||||
run: |
|
run: |
|
||||||
make test-gateway-api-conformance
|
make test-gateway-api-conformance
|
||||||
|
10
.github/workflows/test-integration.yaml
vendored
10
.github/workflows/test-integration.yaml
vendored
@ -30,11 +30,6 @@ jobs:
|
|||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Avoid generating webui
|
|
||||||
run: |
|
|
||||||
mkdir webui/static
|
|
||||||
touch webui/static/index.html
|
|
||||||
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: make binary-linux-amd64
|
run: make binary-linux-amd64
|
||||||
|
|
||||||
@ -74,11 +69,6 @@ jobs:
|
|||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Avoid generating webui
|
|
||||||
run: |
|
|
||||||
mkdir webui/static
|
|
||||||
touch webui/static/index.html
|
|
||||||
|
|
||||||
- name: Download traefik binary
|
- name: Download traefik binary
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
5
.github/workflows/test-unit.yaml
vendored
5
.github/workflows/test-unit.yaml
vendored
@ -56,11 +56,6 @@ jobs:
|
|||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Avoid generating webui
|
|
||||||
run: |
|
|
||||||
mkdir webui/static
|
|
||||||
touch webui/static/index.html
|
|
||||||
|
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: |
|
run: |
|
||||||
go test -v -parallel 8 ${{ matrix.package.group }}
|
go test -v -parallel 8 ${{ matrix.package.group }}
|
||||||
|
10
.github/workflows/validate.yaml
vendored
10
.github/workflows/validate.yaml
vendored
@ -27,11 +27,6 @@ jobs:
|
|||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Avoid generating webui
|
|
||||||
run: |
|
|
||||||
mkdir webui/static
|
|
||||||
touch webui/static/index.html
|
|
||||||
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v7
|
uses: golangci/golangci-lint-action@v7
|
||||||
with:
|
with:
|
||||||
@ -55,11 +50,6 @@ jobs:
|
|||||||
- name: Install misspell ${{ env.MISSPELL_VERSION }}
|
- name: Install misspell ${{ env.MISSPELL_VERSION }}
|
||||||
run: curl -sfL https://raw.githubusercontent.com/golangci/misspell/HEAD/install-misspell.sh | sh -s -- -b $(go env GOPATH)/bin ${MISSPELL_VERSION}
|
run: curl -sfL https://raw.githubusercontent.com/golangci/misspell/HEAD/install-misspell.sh | sh -s -- -b $(go env GOPATH)/bin ${MISSPELL_VERSION}
|
||||||
|
|
||||||
- name: Avoid generating webui
|
|
||||||
run: |
|
|
||||||
mkdir webui/static
|
|
||||||
touch webui/static/index.html
|
|
||||||
|
|
||||||
- name: Validate
|
- name: Validate
|
||||||
run: make validate-files
|
run: make validate-files
|
||||||
|
|
||||||
|
5
Makefile
5
Makefile
@ -35,12 +35,15 @@ build-webui-image:
|
|||||||
.PHONY: clean-webui
|
.PHONY: clean-webui
|
||||||
#? clean-webui: Clean WebUI static generated assets
|
#? clean-webui: Clean WebUI static generated assets
|
||||||
clean-webui:
|
clean-webui:
|
||||||
rm -rf webui/static
|
rm -r webui/static
|
||||||
|
mkdir -p webui/static
|
||||||
|
printf 'For more information see `webui/readme.md`' > webui/static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md
|
||||||
|
|
||||||
webui/static/index.html:
|
webui/static/index.html:
|
||||||
$(MAKE) build-webui-image
|
$(MAKE) build-webui-image
|
||||||
docker run --rm -v "$(PWD)/webui/static":'/src/webui/static' traefik-webui yarn build:prod
|
docker run --rm -v "$(PWD)/webui/static":'/src/webui/static' traefik-webui yarn build:prod
|
||||||
docker run --rm -v "$(PWD)/webui/static":'/src/webui/static' traefik-webui chown -R $(shell id -u):$(shell id -g) ./static
|
docker run --rm -v "$(PWD)/webui/static":'/src/webui/static' traefik-webui chown -R $(shell id -u):$(shell id -g) ./static
|
||||||
|
printf 'For more information see `webui/readme.md`' > webui/static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md
|
||||||
|
|
||||||
.PHONY: generate-webui
|
.PHONY: generate-webui
|
||||||
#? generate-webui: Generate WebUI
|
#? generate-webui: Generate WebUI
|
||||||
|
1
webui/.gitignore
vendored
1
webui/.gitignore
vendored
@ -59,3 +59,4 @@ Thumbs.db
|
|||||||
|
|
||||||
# static assets
|
# static assets
|
||||||
static/*
|
static/*
|
||||||
|
!static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md
|
||||||
|
1
webui/static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md
Normal file
1
webui/static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
For more information see `webui/readme.md`
|
Loading…
x
Reference in New Issue
Block a user