diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d64112f..559782c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,4 +32,31 @@ jobs: run: | gh release create ${{ steps.get-version.outputs.version }} --notes "Release ${{ steps.get-version.outputs.version }}" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + file: Dockerfile + platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/mips64le + push: true + tags: | + jumpserver/web-static:${{ steps.get-version.outputs.version }}-bookworm + ghcr.io/jumpserver/web-static:${{ steps.get-version.outputs.version }}-bookworm \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e1301cc..f70a29e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,9 @@ -FROM debian:bullseye-slim +FROM debian:bookworm-slim ARG TARGETARCH LABEL org.opencontainers.image.source https://github.com/jumpserver/web-static -ARG APT_MIRROR=http://mirrors.ustc.edu.cn -RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=web \ - sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list \ - && rm -f /etc/cron.daily/apt-compat \ - && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ +RUN set -ex \ && apt-get update \ && apt-get install -y --no-install-recommends wget ca-certificates \ && echo "no" | dpkg-reconfigure dash \ diff --git a/VERSION b/VERSION index 80e0d76..e876398 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v1.0.5 +v1.0.6