mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Caching
This commit is contained in:
parent
ee02fa131d
commit
1558fb0a30
1 changed files with 12 additions and 1 deletions
13
.github/workflows/elixir.yml
vendored
13
.github/workflows/elixir.yml
vendored
|
@ -14,8 +14,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
_build
|
_build
|
||||||
|
.cargo
|
||||||
deps
|
deps
|
||||||
key: ${{ runner.os }}-build-deps-${{ hashFiles('mix.lock') }}
|
key: ${{ runner.os }}-deps-${{ hashFiles('mix.lock') }}
|
||||||
|
|
||||||
|
- name: Enable caching
|
||||||
|
run: |
|
||||||
|
# Disable volumes so caching can take effect
|
||||||
|
sed -i -Ee 's/- app_[a-z]+_data:.*$//g' docker-compose.yml
|
||||||
|
|
||||||
|
# Make ourselves the owner
|
||||||
|
echo "RUN addgroup -g $(id -g) -S appgroup && adduser -u $(id -u) -S appuser -G appgroup" >> docker/app/Dockerfile
|
||||||
|
echo "USER appuser" >> docker/app/Dockerfile
|
||||||
|
echo "RUN mix local.hex --force && mix local.rebar --force" >> docker/app/Dockerfile
|
||||||
|
|
||||||
- run: docker compose pull
|
- run: docker compose pull
|
||||||
- run: docker compose build
|
- run: docker compose build
|
||||||
|
|
Loading…
Reference in a new issue