Skip to content

Commit

Permalink
Added SSH key to step for pulling image
Browse files Browse the repository at this point in the history
  • Loading branch information
dolsysmith authored Apr 3, 2024
1 parent 7a9609d commit f0ceec5
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit f0ceec5

Please sign in to comment.