-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8797f0e
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: "Ghost 5" | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '35 21 * * 2' | ||
push: | ||
branches: [ "main" ] | ||
paths: | ||
- "5/**" | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- "5/**" | ||
|
||
env: | ||
# The default repo env will be 'ComputeStacks'; uppercase is not allowed. | ||
GH_REPO: computestacks/ghost-blog | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log into Github Registry | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
id: build-and-push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: 5/ | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: | | ||
ghcr.io/${{ env.GH_REPO }}:5 | ||
ghcr.io/${{ env.GH_REPO }}:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM ghost:4-alpine | ||
|
||
RUN apk --no-cache add shadow \ | ||
&& usermod -u 1001 node \ | ||
&& groupmod -g 1001 node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM ghost:5-alpine | ||
|
||
RUN apk --no-cache add shadow \ | ||
&& usermod -u 1001 node \ | ||
&& groupmod -g 1001 node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Ghost Images for ComputeStacks |