mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 10:03:47 +00:00
fix(CORE/docker): image tag creation
This commit is contained in:
8
.github/workflows/docker_build.yml
vendored
8
.github/workflows/docker_build.yml
vendored
@@ -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:
|
||||||
@@ -69,7 +71,7 @@ jobs:
|
|||||||
if: github.repository == 'azerothcore/azerothcore-wotlk' && steps.extract_branch.outputs.branch == 'master'
|
if: github.repository == 'azerothcore/azerothcore-wotlk' && steps.extract_branch.outputs.branch == 'master'
|
||||||
run: |
|
run: |
|
||||||
docker compose --profile dev --profile local push
|
docker compose --profile dev --profile local push
|
||||||
output=$(./acore.sh version | grep "AzerothCore Rev.") && version=${output#"AzerothCore Rev."}
|
output=$(./acore.sh version | grep "AzerothCore Rev. ") && version=${output#"AzerothCore Rev. "}
|
||||||
DOCKER_IMAGE_TAG=$version docker compose --profile local push
|
DOCKER_IMAGE_TAG=$version docker compose --profile local push
|
||||||
|
|
||||||
docker-build-n-deploy-prod:
|
docker-build-n-deploy-prod:
|
||||||
@@ -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/
|
||||||
@@ -143,7 +147,7 @@ jobs:
|
|||||||
if: github.repository == 'azerothcore/azerothcore-wotlk' && steps.extract_branch.outputs.branch == 'master'
|
if: github.repository == 'azerothcore/azerothcore-wotlk' && steps.extract_branch.outputs.branch == 'master'
|
||||||
run: |
|
run: |
|
||||||
docker compose --profile prod push
|
docker compose --profile prod push
|
||||||
output=$(./acore.sh version | grep "AzerothCore Rev.") && version=${output#"AzerothCore Rev."}
|
output=$(./acore.sh version | grep "AzerothCore Rev. ") && version=${output#"AzerothCore Rev. "}
|
||||||
DOCKER_IMAGE_TAG=$version docker compose --profile prod push
|
DOCKER_IMAGE_TAG=$version docker compose --profile prod push
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user