This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
121 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Build and Push Base Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'pr*' | ||
paths: | ||
- 'versions.txt' | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Extract date | ||
id: vars | ||
run: echo "IMAGE_TAG=$(date +'%Y%m%d_%H%M%S')" >> $GITHUB_ENV | ||
|
||
- name: Extract repository name | ||
id: repo | ||
run: echo "REPO=$(basename ${{ github.repository }})" >> $GITHUB_ENV | ||
|
||
- name: Build and push multi-arch image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: jumpserver/${{ env.REPO }}:${{ env.IMAGE_TAG }} | ||
file: Dockerfile | ||
|
||
- name: Get current branch name | ||
id: get_branch | ||
run: echo "current_branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV | ||
|
||
- name: Set up Git | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
- name: Update docker-web dependencies applets | ||
run: | | ||
git clone https://github.com/jumpserver/docker-web.git | ||
cd docker-web | ||
git checkout -b ${{ env.current_branch }} | ||
sed -i 's|jumpserver/web-static:.* |jumpserver/web-static:${{ env.IMAGE_TAG }} |' Dockerfile-ee | ||
git add Dockerfile-ee | ||
git commit -m "perf: Update Dockerfile-ee web static version" | ||
- name: Push changes | ||
run: | | ||
cd docker-web | ||
git remote set-url origin https://${{ secrets.PRIVATE_TOKEN }}@github.com/jumpserver/docker-web.git | ||
git push origin ${{ env.current_branch }} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
FROM scratch | ||
ARG TARGETARCH | ||
COPY opt /opt | ||
FROM alpine:3.20.1 | ||
|
||
WORKDIR /opt | ||
|
||
COPY . . | ||
|
||
RUN set -ex \ | ||
&& sh /opt/prepare.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PLAY_VERSION=1.1.0-1 | ||
PYTHON_VERSION=3.11.6 | ||
CHROME_VERSION=118.0.5993.118 | ||
CHROME_DRIVER_VERSION=118.0.5993.70 | ||
DBEAVER_VERSION=22.3.4 | ||
MRD_VERSION=10.6.7 | ||
OPENSSH_VERSION=v9.4.0.0 | ||
MONGOSH_VERSION=2.2.12 | ||
TINKER_VERSION=v0.1.6 | ||
VIDEO_PLAYER_VERSION=0.1.9 | ||
Client_VERSION=v2.1.3 |