Skip to content

Commit

Permalink
Use cache action for deps docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartinlogan committed Feb 8, 2024
1 parent 94a0cb0 commit 4728669
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build_and_push_docker_images.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build and Push Docker Images
on:
push:
branches:
- master
- main
- dev
workflow_dispatch:
branches:
- master
Expand All @@ -16,6 +20,12 @@ jobs:
if: ${{ github.ref_type == 'tag' || github.event.inputs.build_docker_images }}
runs-on: ubuntu-20.04
steps:
- name: Cache Hermes deps Docker
uses: actions/cache@v3
id: docker-deps-cache
with:
path: ci/deps/deps.Dockerfile
key: docker-${{ hashFiles('ci/deps/deps.Dockerfile') }}
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
Expand All @@ -27,6 +37,7 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Build and push deps.Dockerfile
uses: docker/build-push-action@v4
if: steps.docker-deps-cache.outputs.cache-hit != 'true'
with:
context: ./
file: ./docker/deps.Dockerfile
Expand Down

0 comments on commit 4728669

Please sign in to comment.