This commit is contained in:
BaoXuebin 2023-04-10 02:00:03 +08:00
parent a36aed000b
commit 0c5b866064
3 changed files with 5 additions and 4 deletions

View File

@ -21,6 +21,7 @@ jobs:
# generate Docker tags based on the following events/attributes # generate Docker tags based on the following events/attributes
tags: | tags: |
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=ref,event=branch
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2

View File

@ -1,11 +1,11 @@
# 构建 beancount # 构建 beancount
FROM python:latest as beancount_builder FROM python:3.6.15 as beancount_builder
WORKDIR /build WORKDIR /build
ENV PATH "/app/bin:$PATH" ENV PATH "/app/bin:$PATH"
RUN python3 -mvenv /app RUN python3 -mvenv /app
RUN wget https://github.com/beancount/beancount/archive/refs/tags/2.3.5.tar.gz RUN wget https://github.com/beancount/beancount/archive/refs/tags/2.3.5.tar.gz
RUN tar -zxvf 2.3.5.tar.gz RUN tar -zxvf 2.3.5.tar.gz
RUN python3 -m pip install ./beancount-2.3.5 RUN python3 -m pip install ./beancount-2.3.5 -i https://mirrors.aliyun.com/pypi/simple/
RUN find /app -name __pycache__ -exec rm -rf -v {} + RUN find /app -name __pycache__ -exec rm -rf -v {} +
# 构建 beancount-gs # 构建 beancount-gs
@ -23,7 +23,7 @@ COPY public/icons ./public/default_icons
RUN go build . RUN go build .
# 镜像 # 镜像
FROM python:3.10-alpine FROM python:3.6.15-alpine
COPY --from=beancount_builder /app /app COPY --from=beancount_builder /app /app

View File

@ -1,2 +1,2 @@
tag=latest tag=1.1.12
dataPath=/data/beancount dataPath=/data/beancount