Skip to content

Commit

Permalink
adjust docker deploy workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Jan 26, 2024
1 parent dba2034 commit e7dfaaf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ghcr_edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions .github/workflows/ghcr_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@ export default defineConfig({
plugins: [solid(), UnoCSS()],
build: {
outDir: "../dist"
}
},
server: {
proxy: {
"/v1": {
target: "http://localhost:9876",
changeOrigin: true,
},
},
},
})

0 comments on commit e7dfaaf

Please sign in to comment.