feat(CI/Docker): build all containers in CI (#3289)

This commit is contained in:
Francesco Borzì
2020-08-15 23:33:57 +02:00
committed by GitHub
parent c2b40b126d
commit 95dff359be
2 changed files with 45 additions and 5 deletions

View File

@@ -47,16 +47,56 @@ jobs:
docker-build:
strategy:
fail-fast: false
runs-on: ubuntu-18.04
fail-fast: true
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Configure
run: |
docker --version
docker-compose --version
./apps/ci/docker/ci-docker-config.sh
./bin/acore-docker-generate-etc
- name: Build
run: |
./bin/acore-docker-build
docker-worldserver:
strategy:
fail-fast: true
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Configure
run: |
docker --version
docker-compose --version
- name: Build
run: |
docker build -t azerothcore/worldserver -f docker/worldserver/Dockerfile docker/worldserver
docker-authserver:
strategy:
fail-fast: true
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Configure
run: |
docker --version
docker-compose --version
- name: Build
run: |
docker build -t azerothcore/authserver -f docker/authserver/Dockerfile docker/authserver
docker-database:
strategy:
fail-fast: true
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Configure
run: |
docker --version
docker-compose --version
- name: Build
run: |
docker build -t azerothcore/database -f docker/database/Dockerfile .

View File

@@ -19,7 +19,7 @@ If you just want to install the whole AzerothCore quickly using Docker Compose,
To build the container image you have to be in the **main** folder of your local AzerothCore sources directory.
```
docker build -t azerothcore/authserver -f docker/authserver/Dockerfile docker/authserver/
docker build -t azerothcore/authserver -f docker/authserver/Dockerfile docker/authserver
```
*For more information about the `docker build` command, check the [docker build doc](https://docs.docker.com/engine/reference/commandline/build/).*