diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index a7bd63f..3f3f951 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -27,7 +27,6 @@ permissions: contents: read pages: write id-token: write - packages: write # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. @@ -47,20 +46,14 @@ jobs: repository: gwu-libraries/jekyll-journals # Using SSH to authenticate with this private repo ssh-key: ${{ secrets.JEKYLL_JOURNALS_REPO_KEY }} - # Uses the `docker/login-action` action to log in to the Container registry registry. - - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} # Retrieve our modified Jekyll image from GHCR - name: Build site inside Docker container + with: + ssh-key: ${{ secrets.JEKYLL_JOURNALS_REPO_KEY }} run: | mkdir ${PWD}/builds docker pull ghcr.io/gwu-libraries/jekyll-journals-builder:main - docker image ls - #docker run --volume="${PWD}/builds:/srv/dest" --volume="${PWD}/${{ inputs.sourceSite }}:/srv/source" --volume="jekyll-cache:/srv/source/.jekyll-cache" -e JEKYLL_ENV=production jekyll-journals-builder jekyll build -s /srv/source -d /srv/dest + docker run --volume="${PWD}/builds:/srv/dest" --volume="${PWD}/${{ inputs.sourceSite }}:/srv/source" --volume="jekyll-cache:/srv/source/.jekyll-cache" -e JEKYLL_ENV=production jekyll-journals-builder jekyll build -s /srv/source -d /srv/dest # - name: Setup Pages # id: pages