mirror of
https://github.com/gshang2017/docker.git
synced 2025-07-23 00:48:23 +00:00
kms alpine:3.21
This commit is contained in:
17
.github/workflows/kms.yml
vendored
17
.github/workflows/kms.yml
vendored
@ -13,39 +13,40 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 'Set env'
|
- name: 'Set env'
|
||||||
run: |
|
run: |
|
||||||
echo "VLMCSD_VER=$(echo `grep -n "VLMCSD_VER=" kms/Dockerfile`|awk -F= '{print $3}')" >> $GITHUB_ENV
|
echo "VLMCSD_VER=$(echo `grep -n "VLMCSD_VER=" kms/Dockerfile`|awk -F= '{print $3}')" >> $GITHUB_ENV
|
||||||
|
echo "ALPINE_VER=$(echo `grep -n "compilingvlmcsd" kms/Dockerfile`|awk -F: '{print $3}'|awk -F' ' '{print $1}')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: all
|
platforms: all
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Login to GHCR
|
- name: Login to GHCR
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ./kms
|
context: ./kms
|
||||||
file: ./kms/Dockerfile
|
file: ./kms/Dockerfile
|
||||||
@ -53,9 +54,9 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
johngong/kms:latest
|
johngong/kms:latest
|
||||||
johngong/kms:${{ env.VLMCSD_VER }}
|
johngong/kms:${{ env.VLMCSD_VER }}-alpine-${{ env.ALPINE_VER }}
|
||||||
ghcr.io/gshang2017/kms:latest
|
ghcr.io/gshang2017/kms:latest
|
||||||
ghcr.io/gshang2017/kms:${{ env.VLMCSD_VER }}
|
ghcr.io/gshang2017/kms:${{ env.VLMCSD_VER }}-alpine-${{ env.ALPINE_VER }}
|
||||||
|
|
||||||
- name: Docker Hub Description
|
- name: Docker Hub Description
|
||||||
uses: peter-evans/dockerhub-description@v3
|
uses: peter-evans/dockerhub-description@v3
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#compiling vlmcsd
|
#compiling vlmcsd
|
||||||
FROM alpine:3.20 as compilingvlmcsd
|
FROM alpine:3.21 AS compilingvlmcsd
|
||||||
|
|
||||||
ARG VLMCSD_VER=1113
|
ARG VLMCSD_VER=1113
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ RUN apk add --no-cache git build-base \
|
|||||||
&& make
|
&& make
|
||||||
|
|
||||||
# docker vlmcsd
|
# docker vlmcsd
|
||||||
FROM alpine:3.20
|
FROM alpine:3.21
|
||||||
|
|
||||||
ARG S6_VER=3.2.0.2
|
ARG S6_VER=3.2.0.2
|
||||||
ARG VLMCSD_VER=1113
|
ARG VLMCSD_VER=1113
|
||||||
|
15
kms/docker-compose.yml
Normal file
15
kms/docker-compose.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
services:
|
||||||
|
kms:
|
||||||
|
# github镜像:ghcr.io/johngong/kms:latest
|
||||||
|
image: johngong/kms:latest
|
||||||
|
container_name: kms
|
||||||
|
ports:
|
||||||
|
- 1688:1688
|
||||||
|
- 8080:8080
|
||||||
|
environment:
|
||||||
|
UID: 1000
|
||||||
|
GID: 1000
|
||||||
|
KMS_README_WEB: true
|
||||||
|
KMS_README_WEB_PORT: 8080
|
||||||
|
VLMCSD_SERVER_PORT: 1688
|
||||||
|
restart: unless-stopped
|
Reference in New Issue
Block a user