Skip to content

Commit

Permalink
Update Ghost version and add image signing step
Browse files Browse the repository at this point in the history
  • Loading branch information
ngeorger committed Mar 15, 2024
1 parent 7122acf commit bc16265
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/build-custom-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
ghost_version:
description: 'Ghost version'
required: false
default: '5.80.0'
default: '5.80.2'
type: string

jobs:
Expand Down Expand Up @@ -149,6 +149,17 @@ jobs:
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}

- name: Sign the images with GitHub OIDC Token
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
env:
DIGEST: ${{ steps.build-and-push.outputs.digest }}
TAGS: ${{ steps.meta.outputs.tags }}
run: |
images=""
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes ${images}
-
name: Build pull request
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ USER root

# Move the original content directory to a backup location, create a new content directory, set the correct ownership and permissions, and switch back to the "node" user
RUN mv -v $GHOST_CONTENT $GHOST_CONTENT_ORIGINAL && \
rm -rfv $GHOST_CONTENT_ORIGINAL && \
rm -rf $GHOST_CONTENT_ORIGINAL && \
mkdir -pv $GHOST_CONTENT && \
chown -R node:node $GHOST_INSTALL && \
chmod 1777 $GHOST_CONTENT
Expand Down

0 comments on commit bc16265

Please sign in to comment.