fix(CORE/docker): image tag creation

This commit is contained in:
Yehonal
2022-11-07 14:48:22 +01:00
parent e4016823d7
commit 4e7c57f7e6
+4
View File
@@ -62,6 +62,8 @@ jobs:
# pull the images first to load the docker cache layers # pull the images first to load the docker cache layers
./acore.sh docker pull ./acore.sh docker pull
./acore.sh docker build ./acore.sh docker build
output=$(./acore.sh version | grep "AzerothCore Rev. ") && version=${output#"AzerothCore Rev. "}
DOCKER_IMAGE_TAG=$version docker compose --profile dev --profile local build
- name: Deploy Dev - name: Deploy Dev
#env: #env:
@@ -132,6 +134,8 @@ jobs:
# pull the images first to load the docker cache layers # pull the images first to load the docker cache layers
./acore.sh docker prod:pull ./acore.sh docker prod:pull
./acore.sh docker prod:build ./acore.sh docker prod:build
output=$(./acore.sh version | grep "AzerothCore Rev. ") && version=${output#"AzerothCore Rev. "}
DOCKER_IMAGE_TAG=$version ./acore.sh docker prod:build
# create the container to allow the copy right after # create the container to allow the copy right after
docker compose create ac-build-prod docker compose create ac-build-prod
docker compose cp ac-build-prod:/azerothcore/var/ccache var/docker/ docker compose cp ac-build-prod:/azerothcore/var/ccache var/docker/