diff --git a/.github/workflows/ghost-5.yml b/.github/workflows/ghost-5.yml new file mode 100644 index 0000000..c120917 --- /dev/null +++ b/.github/workflows/ghost-5.yml @@ -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 diff --git a/4/Dockerfile b/4/Dockerfile new file mode 100644 index 0000000..76c02a7 --- /dev/null +++ b/4/Dockerfile @@ -0,0 +1,5 @@ +FROM ghost:4-alpine + +RUN apk --no-cache add shadow \ + && usermod -u 1001 node \ + && groupmod -g 1001 node diff --git a/5/Dockerfile b/5/Dockerfile new file mode 100644 index 0000000..04d9a19 --- /dev/null +++ b/5/Dockerfile @@ -0,0 +1,5 @@ +FROM ghost:5-alpine + +RUN apk --no-cache add shadow \ + && usermod -u 1001 node \ + && groupmod -g 1001 node diff --git a/README.md b/README.md new file mode 100644 index 0000000..aa75dd9 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Ghost Images for ComputeStacks \ No newline at end of file