Skip to content

Commit

Permalink
Cache Docker images for next builds
Browse files Browse the repository at this point in the history
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
  • Loading branch information
btlogy committed Feb 1, 2024
1 parent 6381dd4 commit 9ff5c03
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ jobs:
"https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-linux-x86_64"
sudo chmod +x /usr/local/bin/docker-compose
- name: Cache docker images
uses: ScribeMD/docker-cache@0.3.3
with:
key: |
docker-${{ runner.os }}-${{ hashFiles(
'docker-compose*.yml',
'client/Dockerfile',
'client-e2e/Dockerfile',
'client-e2e/images/Dockerfile.*',
) }}
- name: create variables for production env.
if: inputs.environment == 'prod'
run: |
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ jobs:
sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/v2.11.2/docker-compose-linux-x86_64"
sudo chmod +x /usr/local/bin/docker-compose
- name: Cache docker images
uses: ScribeMD/docker-cache@0.3.3
with:
key: |
docker-${{ runner.os }}-${{ hashFiles(
'docker-compose*.yml',
'client/Dockerfile',
'client-e2e/Dockerfile',
'client-e2e/images/Dockerfile.*',
) }}
- name: Setup for running tests
run: |
IP=$(ip address show eth0 | grep inet | cut -d ' ' -f 6 | cut -d '/' -f1 | head -n1)
Expand Down

0 comments on commit 9ff5c03

Please sign in to comment.