diff --git a/.github/workflows/ghcr_edge.yml b/.github/workflows/ghcr_edge.yml index 16a7561..d85de0f 100644 --- a/.github/workflows/ghcr_edge.yml +++ b/.github/workflows/ghcr_edge.yml @@ -19,9 +19,9 @@ jobs: password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push Docker image run: | - docker build . -f Dockerfile.alpine -t ${{ github.repository }}:edge-alpine - docker build . -f Dockerfile.debian -t ${{ github.repository }}:edge-debian - docker tag ${{ github.repository }}:alpine ghcr.io/${{ github.repository }}:${{ github.ref_name }}-alpine - docker tag ${{ github.repository }}:debian ghcr.io/${{ github.repository }}:${{ github.ref_name }}-debian + docker build . -f Dockerfile.alpine -t smoltable:edge-alpine + docker build . -f Dockerfile.debian -t smoltable:edge-debian + docker tag smoltable:alpine ghcr.io/${{ github.repository }}:${{ github.ref_name }}-alpine + docker tag smoltable:debian ghcr.io/${{ github.repository }}:${{ github.ref_name }}-debian docker push ghcr.io/${{ github.repository }}:edge-alpine docker push ghcr.io/${{ github.repository }}:edge-debian diff --git a/.github/workflows/ghcr_stable.yml b/.github/workflows/ghcr_stable.yml index b7edbe2..491d60d 100644 --- a/.github/workflows/ghcr_stable.yml +++ b/.github/workflows/ghcr_stable.yml @@ -19,12 +19,12 @@ jobs: password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push Docker image run: | - docker build . -f Dockerfile.alpine -t ${{ github.repository }}:alpine - docker build . -f Dockerfile.debian -t ${{ github.repository }}:debian - docker tag ${{ github.repository }}:alpine ghcr.io/${{ github.repository }}:alpine - docker tag ${{ github.repository }}:debian ghcr.io/${{ github.repository }}:debian - docker tag ${{ github.repository }}:alpine ghcr.io/${{ github.repository }}:${{ github.ref_name }}-alpine - docker tag ${{ github.repository }}:debian ghcr.io/${{ github.repository }}:${{ github.ref_name }}-debian + docker build . -f Dockerfile.alpine -t smoltable:alpine + docker build . -f Dockerfile.debian -t smoltable:debian + docker tag smoltable:alpine ghcr.io/${{ github.repository }}:alpine + docker tag smoltable:debian ghcr.io/${{ github.repository }}:debian + docker tag smoltable:alpine ghcr.io/${{ github.repository }}:${{ github.ref_name }}-alpine + docker tag smoltable:debian ghcr.io/${{ github.repository }}:${{ github.ref_name }}-debian docker push ghcr.io/${{ github.repository }}:alpine docker push ghcr.io/${{ github.repository }}:debian docker push ghcr.io/${{ github.repository }}:${{ github.ref_name }}-alpine diff --git a/app/vite.config.ts b/app/vite.config.ts index f9469ea..189e651 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -6,5 +6,13 @@ export default defineConfig({ plugins: [solid(), UnoCSS()], build: { outDir: "../dist" - } + }, + server: { + proxy: { + "/v1": { + target: "http://localhost:9876", + changeOrigin: true, + }, + }, + }, })