Skip to content

Commit

Permalink
feat: update to PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tssge committed Nov 20, 2023
1 parent 686ece4 commit 5bb0d7a
Show file tree
Hide file tree
Showing 6,018 changed files with 453,361 additions and 178,819 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Create and publish a Docker image
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: ['main']

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
58 changes: 0 additions & 58 deletions .github/workflows/twitter-post.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
.vagrant
Vagrantfile
19 changes: 4 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
FROM php:7.1-cli-alpine3.10

RUN apk add git

RUN apk add curl

COPY entrypoint.sh /entrypoint.sh

COPY apigen /cached-apigen

RUN chmod +x /entrypoint.sh

RUN chmod +x /cached-apigen

ENTRYPOINT ["/entrypoint.sh"]
FROM php:8.2-cli-alpine3.18
COPY cached-apigen /cached-apigen
RUN chmod +x /cached-apigen/vendor/bin/*
ENTRYPOINT ["/cached-apigen/vendor/bin/apigen", "generate", "--wodker-dir", "/cached-apigen/" "-o"]
28 changes: 4 additions & 24 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,15 @@ branding:
icon: 'hard-drive'
color: 'green'
inputs:
push_to_branch:
description: 'Which Branch/Folder To Push'
default: 'gh-pages'
before_cmd:
description: 'Command To Run Before ApiGen'
default: ''
after_cmd:
description: 'Command To Run After ApiGen'
default: ''
auto_push:
description: 'if set to yes then it auto pushes latest source to current repo with the push_to_branch'
default: 'yes'
output_folder:
description: 'Custom output folder if auto_push is disabled'
description: 'Folder to output docs'
default: ''
source_folder:
description: 'Custom Source Folder if auto_push is disabled'
description: 'Folder to generate docs'
default: ''
cached_apigen:
description: 'If set to yes then it uses cached apigen'
default: 'yes'
runs:
using: 'docker'
image: 'Dockerfile'
image: 'docker://ghcr.io/net9-oy/action-apigen:main'
args:
- ${{ inputs.push_to_branch }}
- ${{ inputs.before_cmd }}
- ${{ inputs.after_cmd }}
- ${{ inputs.auto_push }}
- ${{ inputs.output_folder }}
- ${{ inputs.source_folder }}
- ${{ inputs.cached_apigen }}
- ${{ inputs.source_folder }}
5 changes: 0 additions & 5 deletions apigen/composer.json

This file was deleted.

Loading

0 comments on commit 5bb0d7a

Please sign in to comment.