Skip to content

Commit

Permalink
update docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnkwlp committed Jul 3, 2024
1 parent fe04934 commit cf45f41
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/build-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
with:
node-version: 18
cache: "pnpm"
cache-dependency-path: "./ui"

- name: Get pnpm store directory
shell: bash
Expand All @@ -39,26 +40,34 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
- name: UI build & pack
run: |
cd ./ui
pnpm install
- name: build
run: |
pnpm run build
mkdir -p ../docker/app
cp -rf ./dist/ ../docker/app
- name: Git Version
id: version
uses: tomerfi/version-bumper-action@2.0.1

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

# - name: Docker build and push
# uses: docker/build-push-action@v3
# with:
# context: ./
# file: ./docker/zero-ui/Dockerfile
# builder: ${{ steps.buildx.outputs.name }}
# platforms: linux/amd64,linux/arm64,linux/arm
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.prep_zero-ui.outputs.tags }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCER_USERNAME }}
password: ${{ secrets.DOCER_TOKEN }}

- name: Docker build and push
uses: docker/build-push-action@v6
with:
context: ./docker
file: ./docker/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64,linux/arm64,linux/arm
push: ${{ github.event_name != 'pull_request' }}
tags: passingwind/zt-ui:latest,passingwind/zt-ui:${{ steps.version.outputs.next }}
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- "9993:9993/udp"
- "9993:9993/tcp"
ui:
image: jxnkwlp/zt-ui:latest
image: passingwind/zt-ui:latest
build:
context: .
dockerfile: ./Dockerfile
Expand Down

0 comments on commit cf45f41

Please sign in to comment.