Skip to content

Commit

Permalink
wip: Trying to make build cache work...
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Bilotta committed Nov 12, 2023
1 parent 9d49a6b commit e5eb50e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ jobs:
echo VERSION_CODE="1.0.0-nightly+$(date -u +"%Y%m%d")" >> "${GITHUB_ENV}"
- name: Build the Docker images
env:
DOCKER_BUILDKIT: 1

run: |
docker build --build-arg EXPANSION="${{ inputs.expansion }}" \
docker build --build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg EXPANSION="${{ inputs.expansion }}" \
--build-arg MANGOS_SHA1="${{ env.MANGOS_SHA1 }}" \
--build-arg DATABASE_SHA1="${{ env.DATABASE_SHA1 }}" \
--build-arg THREADS="2" \
Expand Down Expand Up @@ -166,8 +170,11 @@ jobs:
echo VERSION_CODE="1.0.0-nightly+$(date -u +"%Y%m%d")" >> "${GITHUB_ENV}"
- name: Build the Docker images
env:
DOCKER_BUILDKIT: 1

run: |
docker build --build-arg EXPANSION="${{ inputs.expansion }}" \
docker build --build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg MANGOS_SHA1="${{ env.MANGOS_SHA1 }}" \
--build-arg DATABASE_SHA1="${{ env.DATABASE_SHA1 }}" \
--build-arg THREADS="2" \
Expand Down

0 comments on commit e5eb50e

Please sign in to comment.