mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(CI/docker): optimize runtime space
This commit is contained in:
30
.github/workflows/docker_build.yml
vendored
30
.github/workflows/docker_build.yml
vendored
@@ -24,7 +24,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
BUILDKIT_INLINE_CACHE: 1
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
@@ -34,14 +33,20 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Maximize build space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 512
|
||||||
|
swap-size-mb: 1024
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
remove-haskell: 'true'
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||||
docker --version
|
docker --version
|
||||||
docker compose --version
|
docker compose version
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
@@ -91,7 +96,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
BUILDKIT_INLINE_CACHE: 1
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
@@ -101,14 +105,20 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Maximize build space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 512
|
||||||
|
swap-size-mb: 1024
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
remove-haskell: 'true'
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||||
docker --version
|
docker --version
|
||||||
docker compose --version
|
docker compose version
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ x-build-params: &build-params
|
|||||||
DOCKER_USER: ${DOCKER_USER:-acore}
|
DOCKER_USER: ${DOCKER_USER:-acore}
|
||||||
BUILDKIT_INLINE_CACHE: 1
|
BUILDKIT_INLINE_CACHE: 1
|
||||||
cache_from:
|
cache_from:
|
||||||
- acore/ac-wotlk-authserver:${DOCKER_IMAGE_TAG:-master}
|
- registry.hub.docker.com/acore/ac-wotlk-authserver:${DOCKER_IMAGE_TAG:-master}
|
||||||
- acore/ac-wotlk-authserver-local:${DOCKER_IMAGE_TAG:-master}
|
- registry.hub.docker.com/acore/ac-wotlk-authserver-local:${DOCKER_IMAGE_TAG:-master}
|
||||||
- acore/ac-wotlk-worldserver:${DOCKER_IMAGE_TAG:-master}
|
- registry.hub.docker.com/acore/ac-wotlk-worldserver:${DOCKER_IMAGE_TAG:-master}
|
||||||
- acore/ac-wotlk-worldserver-local:${DOCKER_IMAGE_TAG:-master}
|
- registry.hub.docker.com/acore/ac-wotlk-worldserver-local:${DOCKER_IMAGE_TAG:-master}
|
||||||
- acore/ac-wotlk-dev-server:${DOCKER_IMAGE_TAG:-master}
|
- registry.hub.docker.com/acore/ac-wotlk-dev-server:${DOCKER_IMAGE_TAG:-master}
|
||||||
- acore/ac-wotlk-tools:${DOCKER_IMAGE_TAG:-master}
|
- registry.hub.docker.com/acore/ac-wotlk-tools:${DOCKER_IMAGE_TAG:-master}
|
||||||
#- acore/ac-wotlk-client-data-server:${DOCKER_IMAGE_TAG:-master}
|
- registry.hub.docker.com/acore/ac-wotlk-client-data:${DOCKER_IMAGE_TAG:-master}
|
||||||
|
|
||||||
x-ac-shared-conf: &ac-shared-conf
|
x-ac-shared-conf: &ac-shared-conf
|
||||||
<<: *networks
|
<<: *networks
|
||||||
|
|||||||
Reference in New Issue
Block a user