diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 603e8b1..2fe595c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,20 +24,18 @@ jobs: - name: Cache SDK uses: actions/cache@v4 with: - path: aem-sdk-${{ env.AEM_SDK_VERSION }}.zip + path: aem-sdk-artifacts key: aem-sdk-${{ env.AEM_SDK_VERSION }}.zip - - name: Download SDK + - name: Checkout AEM SDK artifacts repository + uses: actions/checkout@v4 + with: + name: orbinson/aem-sdk-artifacts + token: ${{ secrets.PRIVATE_TOKEN }} + path: aem-sdk-artifacts + - name: Pull SDK run: | - if ! [ -f aem-sdk-${{ env.AEM_SDK_VERSION }}.zip ]; then - touch aem-sdk-${{ env.AEM_SDK_VERSION }}.zip - else - ls -la - fi -# - name: Checkout AEM SDK artifacts repository -# uses: actions/checkout@v4 -# with: -# name: orbinson/aem-sdk-artifacts -# token: ${{ secrets.GITHUB_PRIVATE_TOKEN }} # Required for private repositories, setup with https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line + cd aem-sdk-artifacts + git lfs pull --include="aem-sdk-${{ env.AEM_SDK_VERSION }}.zip" # - name: Set up QEMU # uses: docker/setup-qemu-action@v3 # - name: Set up Docker Buildx diff --git a/Dockerfile b/Dockerfile index 68ab572..f6fe388 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ WORKDIR /opt COPY aem-start.sh /usr/local/bin/aem-start -#COPY aem-sdk-*.zip aem/home/lib/ +COPY aem-sdk-artifacts/aem-sdk-*.zip aem/home/lib/ RUN chmod +x /usr/local/bin/aem-start