Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatson committed Oct 3, 2023
0 parents commit 8797f0e
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ghost-5.yml
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
5 changes: 5 additions & 0 deletions 4/Dockerfile
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
5 changes: 5 additions & 0 deletions 5/Dockerfile
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ghost Images for ComputeStacks

0 comments on commit 8797f0e

Please sign in to comment.