From cc5225e677d17ddafb10ed4c8c898db4e9045cc4 Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Wed, 7 Aug 2024 13:48:09 +1000 Subject: [PATCH] Build lookup service under GitHub actions. --- .github/workflows/build-and-publish-images.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-publish-images.yaml b/.github/workflows/build-and-publish-images.yaml index 8be5bc42..a2e008fe 100644 --- a/.github/workflows/build-and-publish-images.yaml +++ b/.github/workflows/build-and-publish-images.yaml @@ -38,6 +38,7 @@ jobs: - image: tunnel-manager - image: image-cache - image: assets-server + - image: lookup-service steps: - name: Check out the repository @@ -76,7 +77,7 @@ jobs: image=moby/buildkit:${{env.BUILDKIT_VERSION}} - name: Restore Docker cache (amd64) - if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') }} + if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') || (matrix.image == 'lookup-service') }} uses: actions/cache/restore@v4 with: path: /tmp/.buildx-cache-amd64-new @@ -85,7 +86,7 @@ jobs: ${{runner.os}}-buildx-cache-amd64-${{matrix.image}}- - name: Restore Docker cache (arm64) - if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') }} + if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') || (matrix.image == 'lookup-service') }} uses: actions/cache/restore@v4 with: path: /tmp/.buildx-cache-arm64-new @@ -149,19 +150,19 @@ jobs: push: false - name: Dump cache directory sizes - if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') }} + if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') || (matrix.image == 'lookup-service') }} run: | du -ks /tmp/.buildx-cache-* || true - name: Save Docker cache (amd64) - if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') }} + if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') || (matrix.image == 'lookup-service') }} uses: actions/cache/save@v4 with: path: /tmp/.buildx-cache-amd64-new key: ${{runner.os}}-buildx-cache-amd64-${{matrix.image}}-${{github.sha}} - name: Save Docker cache (arm64) - if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') }} + if: ${{ (matrix.image == 'secrets-manager') || (matrix.image == 'session-manager') || (matrix.image == 'training-portal') || (matrix.image == 'tunnel-manager') || (matrix.image == 'lookup-service') }} uses: actions/cache/save@v4 with: path: /tmp/.buildx-cache-arm64-new