add --depth=1 to git clone.
This commit is contained in:
17
.github/workflows/build-nightly-cron.yaml
vendored
17
.github/workflows/build-nightly-cron.yaml
vendored
@@ -58,7 +58,7 @@ jobs:
|
|||||||
- name: Compare Fika Hashes
|
- name: Compare Fika Hashes
|
||||||
id: compare-fika
|
id: compare-fika
|
||||||
run: |
|
run: |
|
||||||
source trigger.fika
|
source trigger.nightly
|
||||||
fika_last_built_hash=${fika:0:8}
|
fika_last_built_hash=${fika:0:8}
|
||||||
fika_latest_commit_hash=$(git ls-remote https://github.com/project-fika/Fika-Server.git refs/heads/${{ env.NIGHTLY_BRANCH_FIKA }} | awk '{print $1}')
|
fika_latest_commit_hash=$(git ls-remote https://github.com/project-fika/Fika-Server.git refs/heads/${{ env.NIGHTLY_BRANCH_FIKA }} | awk '{print $1}')
|
||||||
fika_latest_commit_hash=${fika_latest_commit_hash:0:8};
|
fika_latest_commit_hash=${fika_latest_commit_hash:0:8};
|
||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
|
|
||||||
build-fika-server:
|
build-fika-server:
|
||||||
needs: prepare
|
needs: prepare
|
||||||
if: needs.prepare.outputs.PROCEED == 'true' || needs.prepare.outputs.PROCEED_FIKA == 'true'
|
if: needs.prepare.outputs.PROCEED == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
SOURCECODE_DIR: ${{ github.workspace }}/fika-server
|
SOURCECODE_DIR: ${{ github.workspace }}/fika-server
|
||||||
@@ -111,7 +111,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Clone Fika Server Code
|
- name: Clone Fika Server Code
|
||||||
run: |
|
run: |
|
||||||
git clone -b ${{ env.NIGHTLY_BRANCH_FIKA }} https://github.com/project-fika/Fika-Server.git ${{ env.SOURCECODE_DIR }}
|
git clone -b ${{ env.NIGHTLY_BRANCH_FIKA }} --depth=1 https://github.com/project-fika/Fika-Server.git ${{ env.SOURCECODE_DIR }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
@@ -162,7 +162,7 @@ jobs:
|
|||||||
|
|
||||||
build-server-linux:
|
build-server-linux:
|
||||||
needs: [prepare, build-fika-server]
|
needs: [prepare, build-fika-server]
|
||||||
if: needs.prepare.outputs.PROCEED == 'true' || needs.prepare.outputs.PROCEED_FIKA == 'true'
|
if: needs.prepare.outputs.PROCEED == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
OUTPUT_DIR: spt-server
|
OUTPUT_DIR: spt-server
|
||||||
@@ -279,7 +279,6 @@ jobs:
|
|||||||
|
|
||||||
build-docker-image-multi-arch:
|
build-docker-image-multi-arch:
|
||||||
needs: [prepare, build-server-linux]
|
needs: [prepare, build-server-linux]
|
||||||
if: needs.prepare.outputs.PROCEED == 'true' || needs.prepare.outputs.PROCEED_FIKA == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_USER: stblog
|
DOCKERHUB_USER: stblog
|
||||||
@@ -374,7 +373,6 @@ jobs:
|
|||||||
|
|
||||||
build-server-windows:
|
build-server-windows:
|
||||||
needs: [prepare, build-server-linux]
|
needs: [prepare, build-server-linux]
|
||||||
if: needs.prepare.outputs.PROCEED == 'true' || needs.prepare.outputs.PROCEED_FIKA == 'true'
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
OUTPUT_DIR: spt-server
|
OUTPUT_DIR: spt-server
|
||||||
@@ -392,7 +390,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Clone AirryCo's Server Code
|
- name: Clone AirryCo's Server Code
|
||||||
run: |
|
run: |
|
||||||
git clone -b ${{ env.NIGHTLY_BRANCH }} ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SPT_SERVER_AIRRYCO }} ${{ env.SOURCECODE_DIR }}
|
git clone -b ${{ env.NIGHTLY_BRANCH }} --depth=1 ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SPT_SERVER_AIRRYCO }} ${{ env.SOURCECODE_DIR }}
|
||||||
cd ${{ env.SOURCECODE_DIR }}
|
cd ${{ env.SOURCECODE_DIR }}
|
||||||
git lfs pull
|
git lfs pull
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -489,10 +487,9 @@ jobs:
|
|||||||
rm trigger.nightly
|
rm trigger.nightly
|
||||||
server=${{ needs.prepare.outputs.SPT_SERVER_COMMIT }}
|
server=${{ needs.prepare.outputs.SPT_SERVER_COMMIT }}
|
||||||
echo "server=$server" > trigger.nightly
|
echo "server=$server" > trigger.nightly
|
||||||
rm trigger.fika
|
|
||||||
fika=${{ needs.prepare.outputs.FIKA_SERVER_COMMIT }}
|
fika=${{ needs.prepare.outputs.FIKA_SERVER_COMMIT }}
|
||||||
echo "fika=$fika" > trigger.fika
|
echo "fika=$fika" >> trigger.nightly
|
||||||
git add trigger.nightly trigger.fika
|
git add trigger.nightly
|
||||||
git commit -m "🤖 up to spt-server: \`$server\`, fika-server:\`${fika:0:8}\`."
|
git commit -m "🤖 up to spt-server: \`$server\`, fika-server:\`${fika:0:8}\`."
|
||||||
git push
|
git push
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
4
.github/workflows/build-release-cron.yaml
vendored
4
.github/workflows/build-release-cron.yaml
vendored
@@ -221,7 +221,6 @@ jobs:
|
|||||||
|
|
||||||
build-docker-image-multi-arch:
|
build-docker-image-multi-arch:
|
||||||
needs: [prepare, build-server-linux]
|
needs: [prepare, build-server-linux]
|
||||||
if: needs.prepare.outputs.PROCEED == 'true' || needs.prepare.outputs.PROCEED_FIKA == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_USER: stblog
|
DOCKERHUB_USER: stblog
|
||||||
@@ -369,7 +368,6 @@ jobs:
|
|||||||
|
|
||||||
build-server-windows:
|
build-server-windows:
|
||||||
needs: [prepare, build-server-linux]
|
needs: [prepare, build-server-linux]
|
||||||
if: ${{ needs.prepare.outputs.PROCEED == 'true' }}
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
OUTPUT_DIR: spt-server
|
OUTPUT_DIR: spt-server
|
||||||
@@ -386,7 +384,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Clone AirroCo's Server Code
|
- name: Clone AirroCo's Server Code
|
||||||
run: |
|
run: |
|
||||||
git clone -b ${{ env.RELEASE_BRANCH }} ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SPT_SERVER_AIRRYCO }} ${{ env.SOURCECODE_DIR }}
|
git clone -b ${{ env.RELEASE_BRANCH }} --depth=1 ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SPT_SERVER_AIRRYCO }} ${{ env.SOURCECODE_DIR }}
|
||||||
cd ${{ env.SOURCECODE_DIR }}
|
cd ${{ env.SOURCECODE_DIR }}
|
||||||
git lfs pull
|
git lfs pull
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM node:20.11.1-alpine AS server-builder
|
FROM node:20.11.1-alpine AS server-builder
|
||||||
RUN apk add --no-cache git git-lfs && \
|
RUN apk add --no-cache git git-lfs && \
|
||||||
git clone -b master https://github.com/AirryCo/spt-server.git /spt-server && \
|
git clone -b master --depth=1 https://github.com/AirryCo/spt-server.git /spt-server && \
|
||||||
cd /spt-server && git lfs pull && \
|
cd /spt-server && git lfs pull && \
|
||||||
cd project && \
|
cd project && \
|
||||||
npm install && npm run build:release
|
npm install && npm run build:release
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
FROM node:20.11.1-alpine AS fika-builder
|
FROM node:20.11.1-alpine AS fika-builder
|
||||||
RUN apk add --no-cache git git-lfs unzip && \
|
RUN apk add --no-cache git unzip && \
|
||||||
git clone -b main https://github.com/project-fika/Fika-Server.git /fika-server && \
|
git clone -b main --depth=1 https://github.com/project-fika/Fika-Server.git /fika-server && \
|
||||||
cd /fika-server && \
|
cd /fika-server && \
|
||||||
npm install && npm run build && \
|
npm install && npm run build && \
|
||||||
mkdir output && cd output && unzip /fika-server/dist/fika-server.zip
|
mkdir output && cd output && unzip /fika-server/dist/fika-server.zip
|
||||||
|
|
||||||
FROM node:20.11.1-alpine AS server-builder
|
FROM node:20.11.1-alpine AS server-builder
|
||||||
RUN apk add --no-cache git git-lfs && \
|
RUN apk add --no-cache git git-lfs && \
|
||||||
git clone -b 3.10.0-DEV https://github.com/AirryCo/spt-server.git /spt-server && \
|
git clone -b 3.10.0-DEV --depth=1 https://github.com/AirryCo/spt-server.git /spt-server && \
|
||||||
cd /spt-server && git lfs pull && \
|
cd /spt-server && git lfs pull && \
|
||||||
cd project && \
|
cd project && \
|
||||||
npm install && npm run build:release
|
npm install && npm run build:release
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM node:20.11.1-alpine AS server-builder
|
FROM node:20.11.1-alpine AS server-builder
|
||||||
RUN apk add --no-cache git git-lfs && \
|
RUN apk add --no-cache git git-lfs && \
|
||||||
git clone -b 3.10.0-DEV https://github.com/AirryCo/spt-server.git /spt-server && \
|
git clone -b 3.10.0-DEV --depth=1 https://github.com/AirryCo/spt-server.git /spt-server && \
|
||||||
cd /spt-server && git lfs pull && \
|
cd /spt-server && git lfs pull && \
|
||||||
cd project && \
|
cd project && \
|
||||||
npm install && npm run build:release
|
npm install && npm run build:release
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
FROM node:20.11.1-alpine AS fika-builder
|
FROM node:20.11.1-alpine AS fika-builder
|
||||||
RUN apk add --no-cache git git-lfs unzip && \
|
RUN apk add --no-cache git unzip && \
|
||||||
git clone -b spt-3.10 https://github.com/project-fika/Fika-Server.git /fika-server && \
|
git clone -b spt-3.10 --depth=1 https://github.com/project-fika/Fika-Server.git /fika-server && \
|
||||||
cd /fika-server && \
|
cd /fika-server && \
|
||||||
npm install && npm run build && \
|
npm install && npm run build && \
|
||||||
mkdir output && cd output && unzip /fika-server/dist/fika-server.zip
|
mkdir output && cd output && unzip /fika-server/dist/fika-server.zip
|
||||||
|
|
||||||
FROM node:20.11.1-alpine AS server-builder
|
FROM node:20.11.1-alpine AS server-builder
|
||||||
RUN apk add --no-cache git git-lfs && \
|
RUN apk add --no-cache git git-lfs && \
|
||||||
git clone -b 3.10.0-DEV https://github.com/AirryCo/spt-server.git /spt-server && \
|
git clone -b 3.10.0-DEV --depth=1 https://github.com/AirryCo/spt-server.git /spt-server && \
|
||||||
cd /spt-server && git lfs pull && \
|
cd /spt-server && git lfs pull && \
|
||||||
cd project && \
|
cd project && \
|
||||||
npm install && npm run build:release
|
npm install && npm run build:release
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
fika=a82cdc8b
|
|
||||||
@@ -1 +1,2 @@
|
|||||||
server=058ed22f
|
server=058ed22f
|
||||||
|
fika=a82cdc8b
|
||||||
|
|||||||
Reference in New Issue
Block a user