fix 修复构建镜像tag不正确
Some checks failed
Build image / build (push) Failing after 57s

This commit is contained in:
timerzz 2024-04-13 10:57:17 +08:00
parent ce00ab21fd
commit 9e1de87c89
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ jobs:
- name: build
run: docker build -t ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:1.3 -f Dockerfile .
- name: tag
run: docker tag ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:1,3 ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:latest
run: docker tag ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:1.3 ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:latest
- name: push 1.3
run: docker push ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:1.3
- name: push latest

View File

@ -8,7 +8,7 @@ RUN CGO_ENABLED=0 go build -trimpath -ldflags '-w -s' -o watcher ./main
FROM oven/bun:1 as front
COPY . /build
WORKDIR /build/wwwroot
RUN bun install && bun run build
RUN bun install -c /build/wwwroot/bunfig.toml && bun run build
FROM alpine:latest
ARG HTTP_PROXY=http://192.168.31.55:10809