Skip to content

Commit

Permalink
Merge pull request #1 from wojiushixiaobai/dev
Browse files Browse the repository at this point in the history
feat: 更新 v3.10.1
  • Loading branch information
wojiushixiaobai authored Jan 16, 2024
2 parents d44b3e0 + 3a5fd93 commit d5bc19a
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 126 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
component: [core, koko, lion, kael, chen, magnus, web]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Get Version
run: |
echo "version=$(basename ${GITHUB_REF})" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: wojiushixiaobai
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Image
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.component }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
wojiushixiaobai/jms_${{ matrix.component }}:${{ env.version }}
ghcr.io/wojiushixiaobai/jms_${{ matrix.component }}:${{ env.version }}
16 changes: 8 additions & 8 deletions docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
args:
VERSION: ${VERSION}
TARGETARCH: ${TARGETARCH}
image: jumpserver/core-ce:${VERSION}
image: wojiushixiaobai/jms_core:${VERSION}
container_name: jms_core
restart: always
command: start web
Expand Down Expand Up @@ -40,7 +40,7 @@ services:
- net

celery:
image: jumpserver/core-ce:${VERSION}
image: wojiushixiaobai/jms_core:${VERSION}
container_name: jms_celery
restart: always
command: start task
Expand Down Expand Up @@ -81,7 +81,7 @@ services:
args:
VERSION: ${VERSION}
TARGETARCH: ${TARGETARCH}
image: jumpserver/koko:${VERSION}
image: wojiushixiaobai/jms_koko:${VERSION}
container_name: jms_koko
restart: always
privileged: true
Expand Down Expand Up @@ -113,7 +113,7 @@ services:
args:
VERSION: ${VERSION}
TARGETARCH: ${TARGETARCH}
image: jumpserver/lion:${VERSION}
image: wojiushixiaobai/jms_lion:${VERSION}
container_name: jms_lion
restart: always
environment:
Expand Down Expand Up @@ -141,7 +141,7 @@ services:
args:
VERSION: ${VERSION}
TARGETARCH: ${TARGETARCH}
image: jumpserver/magnus:${VERSION}
image: wojiushixiaobai/jms_magnus:${VERSION}
container_name: jms_magnus
restart: always
environment:
Expand Down Expand Up @@ -176,7 +176,7 @@ services:
args:
VERSION: ${VERSION}
TARGETARCH: ${TARGETARCH}
image: jumpserver/chen:${VERSION}
image: wojiushixiaobai/jms_chen:${VERSION}
container_name: jms_chen
ulimits:
core: 0
Expand Down Expand Up @@ -206,7 +206,7 @@ services:
args:
VERSION: ${VERSION}
TARGETARCH: ${TARGETARCH}
image: jumpserver/kael:${VERSION}
image: wojiushixiaobai/jms_kael:${VERSION}
container_name: jms_kael
ulimits:
core: 0
Expand Down Expand Up @@ -236,7 +236,7 @@ services:
args:
VERSION: ${VERSION}
TARGETARCH: ${TARGETARCH}
image: jumpserver/web:${VERSION}
image: wojiushixiaobai/jms_web:${VERSION}
container_name: jms_web
restart: always
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-init-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2.4'

services:
core:
image: jumpserver/core-ce:${VERSION}
image: wojiushixiaobai/jms_core:${VERSION}
container_name: jms_core
command: sleep
environment:
Expand Down
108 changes: 0 additions & 108 deletions docker-compose-xpack.yml

This file was deleted.

16 changes: 8 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2.4'
services:
core:
image: jumpserver/core-ce:${VERSION}
image: wojiushixiaobai/jms_core:${VERSION}
container_name: jms_core
ulimits:
core: 0
Expand Down Expand Up @@ -34,7 +34,7 @@ services:
- net

celery:
image: jumpserver/core-ce:${VERSION}
image: wojiushixiaobai/jms_core:${VERSION}
container_name: jms_celery
ulimits:
core: 0
Expand Down Expand Up @@ -70,7 +70,7 @@ services:
- net

koko:
image: jumpserver/koko:${VERSION}
image: wojiushixiaobai/jms_koko:${VERSION}
container_name: jms_koko
ulimits:
core: 0
Expand Down Expand Up @@ -98,7 +98,7 @@ services:
- net

lion:
image: jumpserver/lion:${VERSION}
image: wojiushixiaobai/jms_lion:${VERSION}
container_name: jms_lion
ulimits:
core: 0
Expand All @@ -122,7 +122,7 @@ services:
- net

magnus:
image: jumpserver/magnus:${VERSION}
image: wojiushixiaobai/jms_magnus:${VERSION}
container_name: jms_magnus
ulimits:
core: 0
Expand Down Expand Up @@ -153,7 +153,7 @@ services:
- net

chen:
image: jumpserver/chen:${VERSION}
image: wojiushixiaobai/jms_chen:${VERSION}
container_name: jms_chen
ulimits:
core: 0
Expand All @@ -177,7 +177,7 @@ services:
- net

kael:
image: jumpserver/kael:${VERSION}
image: wojiushixiaobai/jms_kael:${VERSION}
container_name: jms_kael
ulimits:
core: 0
Expand All @@ -201,7 +201,7 @@ services:
- net

web:
image: jumpserver/web:${VERSION}
image: wojiushixiaobai/jms_web:${VERSION}
container_name: jms_web
restart: always
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion magnus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN set -ex \
COPY magnus/entrypoint.sh .
RUN chmod 755 ./entrypoint.sh

FROM debian:buster-slim
FROM debian:bullseye-slim
ENV LANG=en_US.UTF-8

ARG DEPENDENCIES=" \
Expand Down

0 comments on commit d5bc19a

Please sign in to comment.