8000 fix: fix missing composer install cmd by sadok-f · Pull Request #373 · flyimg/flyimg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: fix missing composer install cmd #373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# These are supported funding model platforms

---

open_collective: flyimg
custom: https://paypal.me/sadokf
5 changes: 3 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CD
on:
push:
Expand Down Expand Up @@ -34,8 +35,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
export NEXT_TAG_VERSION=$(npx semantic-release --dry-run | grep 'The next release version is' | sed -E 's/.* ([[:digit:].]+)$/\1/')
echo "new_tag_version=${NEXT_TAG_VERSION}" >> $GITHUB_OUTPUT
NEXT_TAG_VERSION=$(npx semantic-release --dry-run | grep 'The next release version is' | sed -E 's/.* ([[:digit:].]+)$/\1/')
echo "new_tag_version=$NEXT_TAG_VERSION" >> "$GITHUB_OUTPUT"

- name: Release
env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CI

# Run this workflow every time a new commit pushed to your repository
Expand All @@ -19,13 +20,15 @@ jobs:

# Runs the Super-Linter action
- name: Run Super-Linter
uses: github/super-linter@v3.17.0
uses: github/super-linter@v4
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILTER_REGEX_EXCLUDE: .*vendor/.*|.*web/.*
VALIDATE_PHP_PHPSTAN: false
VALIDATE_PHP_PSALM: false
VALIDATE_MARKDOWN: false
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_JSCPD: false
VALIDATE_DOCKERFILE_HADOLINT: false

Expand All @@ -41,7 +44,7 @@ jobs:
run: docker build -t flyimg .

- name: Run Flyimg container
run: docker run -itd -v $(pwd):/var/www/html --name flyimg flyimg
run: docker run -itd -v "$(pwd)":/var/www/html --name flyimg flyimg

- name: Install dependencies
run: docker exec flyimg composer install
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/close_inactive_issues.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Close inactive issues
on:
schedule:
Expand All @@ -15,8 +16,8 @@ jobs:
days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
stale-issue-message: "This issue is stale (30 days with no activity)"
close-issue-message: "This issue was closed (14 days since being marked as stale)"
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
26 changes: 13 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

### Bug Fixes

* add set to add a github release ([511dea9](https://github.com/flyimg/flyimg/commit/511dea943cba6cfe8f5f4ae3d273f97174d43c5a))
* add set to add a GitHub release ([511dea9](https://github.com/flyimg/flyimg/commit/511dea943cba6cfe8f5f4ae3d273f97174d43c5a))
* adding release-note publisher ([e18af03](https://github.com/flyimg/flyimg/commit/e18af03c0beb0bd5782e564f8faef035db345122))
* fix changelog file header ([055b7e8](https://github.com/flyimg/flyimg/commit/055b7e85d4003fbcb4519a71be32eed45b52270b))
* fix Changelog title ([2f15f35](https://github.com/flyimg/flyimg/commit/2f15f3584f1a921f5bdc192e2b15d7359da8ae14))
Expand All @@ -30,7 +30,7 @@
* add missing .releaserc file ([b5b8cad](https://github.com/flyimg/flyimg/commit/b5b8cad74881a8278652ba027b085499a87e375e))
* add tagFormat option for semantic-release ([1cb796f](https://github.com/flyimg/flyimg/commit/1cb796f8bde355de3d96f186aa92300b71972ca4))
* update Github token variable enviroment, closes [#363](https://github.com/flyimg/flyimg/issues/363) ([8b8d10a](https://github.com/flyimg/flyimg/commit/8b8d10a82ad5724f46b142ed0a58134d6e45157f))
* use PAT in github action cd workflow ([e7f4da0](https://github.com/flyimg/flyimg/commit/e7f4da0c1370300482c61799108179d107f78f45))
* use PAT in GitHub action cd workflow ([e7f4da0](https://github.com/flyimg/flyimg/commit/e7f4da0c1370300482c61799108179d107f78f45))
* use Semantic-release for releasing and tagging ([9befb19](https://github.com/flyimg/flyimg/commit/9befb19b77c41fafa2c0a75e84946df3b8c55e07))


Expand All @@ -40,16 +40,16 @@

**Implemented enhancements:**
< 67ED /td>
- Fix Changlelog generator in github action workflow, closes \#287 [\#296](https://github.com/flyimg/flyimg/pull/296) ([sadok-f](https://github.com/sadok-f))
- Fix Changlelog generator in GitHub action workflow, closes \#287 [\#296](https://github.com/flyimg/flyimg/pull/296) ([sadok-f](https://github.com/sadok-f))

## [1.1.21](https://github.com/flyimg/flyimg/tree/1.1.21) (2020-12-31)

[Full Changelog](https://github.com/flyimg/flyimg/compare/1.1.20...1.1.21)

**Implemented enhancements:**

- Fix Changlelog generator in github action workflow, fixes issue\#287 [\#295](https://github.com/flyimg/flyimg/pull/295) ([sadok-f](https://github.com/sadok-f))
- Add new workflow for github release action, closes \#287 [\#294](https://github.com/flyimg/flyimg/pull/294) ([sadok-f](https://github.com/sadok-f))
- Fix Changlelog generator in GitHub action workflow, fixes issue\#287 [\#295](https://github.com/flyimg/flyimg/pull/295) ([sadok-f](https://github.com/sadok-f))
- Add new workflow for GitHub release action, closes \#287 [\#294](https://github.com/flyimg/flyimg/pull/294) ([sadok-f](https://github.com/sadok-f))

## [1.1.20](https://github.com/flyimg/flyimg/tree/1.1.20) (2020-12-31)

Expand All @@ -61,7 +61,7 @@

**Implemented enhancements:**

- create new workflow for github release, closes \#287 [\#293](https://github.com/flyimg/flyimg/pull/293) ([sadok-f](https://github.com/sadok-f))
- create new workflow for GitHub release, closes \#287 [\#293](https://github.com/flyimg/flyimg/pull/293) ([sadok-f](https://github.com/sadok-f))

## [1.1.18](https://github.com/flyimg/flyimg/tree/1.1.18) (2020-12-31)

Expand All @@ -70,10 +70,10 @@
**Implemented enhancements:**

- Fix Changelog generator in Github Action [\#287](https://github.com/flyimg/flyimg/issues/287)
- Fixing changelog generator in github actions, closes \#287 [\#292](https://github.com/flyimg/flyimg/pull/292) ([sadok-f](https://github.com/sadok-f))
- Fixing changelog generator in github actions, closes \#287 [\#291](https://github.com/flyimg/flyimg/pull/291) ([sadok-f](https://github.com/sadok-f))
- Fixing changelog generator in github actions, closes \#287 [\#290](https://github.com/flyimg/flyimg/pull/290) ([sadok-f](https://github.com/sadok-f))
- Fixing changelog generator step in github action, fixes \#287 [\#289](https://github.com/flyimg/flyimg/pull/289) ([sadok-f](https://github.com/sadok-f))
- Fixing changelog generator in GitHub actions, closes \#287 [\#292](https://github.com/flyimg/flyimg/pull/292) ([sadok-f](https://github.com/sadok-f))
- Fixing changelog generator in GitHub actions, closes \#287 [\#2 A3DB 91](https://github.com/flyimg/flyimg/pull/291) ([sadok-f](https://github.com/sadok-f))
- Fixing changelog generator in GitHub actions, closes \#287 [\#290](https://github.com/flyimg/flyimg/pull/290) ([sadok-f](https://github.com/sadok-f))
- Fixing changelog generator step in GitHub action, fixes \#287 [\#289](https://github.com/flyimg/flyimg/pull/289) ([sadok-f](https://github.com/sadok-f))
- Fix Changelog generator action step, fixes \#287 [\#288](https://github.com/flyimg/flyimg/pull/288) ([sadok-f](https://github.com/sadok-f))

## [1.1.17](https://github.com/flyimg/flyimg/tree/1.1.17) (2020-12-31)
Expand All @@ -82,7 +82,7 @@

**Implemented enhancements:**

- Fix deployment step in github action, closes \#280 [\#286](https://github.com/flyimg/flyimg/pull/286) ([sadok-f](https://github.com/sadok-f))
- Fix deployment step in GitHub action, closes \#280 [\#286](https://github.com/flyimg/flyimg/pull/286) ([sadok-f](https://github.com/sadok-f))

## [1.1.16](https://github.com/flyimg/flyimg/tree/1.1.16) (2020-12-31)

Expand Down Expand Up @@ -152,7 +152,7 @@

**Implemented enhancements:**

- Add Generate ChangeLog to github action [\#275](https://github.com/flyimg/flyimg/pull/275) ([sadok-f](https://github.com/sadok-f))
- Add Generate ChangeLog to GitHub action [\#275](https://github.com/flyimg/flyimg/pull/275) ([sadok-f](https://github.com/sadok-f))

## [1.1.8](https://github.com/flyimg/flyimg/tree/1.1.8) (2020-12-28)

Expand All @@ -172,7 +172,7 @@
- Add Codecov Report [\#267](https://github.com/flyimg/flyimg/issues/267)
- Downgrade Github action to v5 [\#272](https://github.com/flyimg/flyimg/pull/272) ([sadok-f](https://github.com/sadok-f))
- add empty tag\_prefix for Github actions [\#271](https://github.com/flyimg/flyimg/pull/271) ([sadok-f](https://github.com/sadok-f))
- Add new github action to release tag closes \#269 [\#270](https://github.com/flyimg/flyimg/pull/270) ([sadok-f](https://github.com/sadok-f))
- Add new GitHub action to release tag closes \#269 [\#270](https://github.com/flyimg/flyimg/pull/270) ([sadok-f](https://github.com/sadok-f))
- Add CodeCov Repport, closes \#267 [\#268](https://github.com/flyimg/flyimg/pull/268) ([sadok-f](https://github.com/sadok-f))
- Add Last-Modified headers tag, closes \#261 [\#266](https://github.com/flyimg/flyimg/pull/266) ([sadok-f](https://github.com/sadok-f))

Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Project maintainers have the right and responsibility to remove, edit, or reject

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.

Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
Examples of representing a project or community include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ RUN usermod -u 1000 www-data && \
chown -R www-data:www-data var/ web/uploads/ && \
chmod 777 -R var/ web/uploads/

#RUN composer install --no-dev --optimize-autoloader
RUN composer install --no-dev --optimize-autoloader
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
---
theme: jekyll-theme-midnight
1 change: 1 addition & 0 deletions config/parameters.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
application_name: Flyimg.io

#debug
Expand Down
1 change: 1 addition & 0 deletions config/routes.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
home:
path : /
defaults: { _controller: 'Core\Controller\DefaultController::indexAction' }
Expand Down
2 changes: 1 addition & 1 deletion docs/application-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ _Defaults to:_
- domain-2.com
```

_Description:_ If `restricted_domains` is enabled, put your whitelisted domains in this list, subdomains are also ok. For the [Digital Ocean Provisioning Script](https://github.com/flyimg/DigitalOcean-provision) you can set the restricted domains at the droplet provisioning step.
_Description:_ If `restricted_domains` is enabled, put your whitelisted domains in this list, subdomains are also OK. For the [Digital Ocean Provisioning Script](https://github.com/flyimg/DigitalOcean-provision) you can set the restricted domains at the droplet provisioning step.

### storage_system

Expand Down
6 changes: 3 additions & 3 deletions docs/enabling-xdebug.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enabling Xdebug

## On Mac OS
## On macOS

- Create an alias for localhost network

Expand Down Expand Up @@ -34,9 +34,9 @@ xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/xdebug.ini'
docker exec flyimg supervisorctl restart php7-fpm
```

## PHPStorm
## PhpStorm

- Add new server with name `Xdebug`, Host: `localhost`, Port: `80`, Debuger: `Xdebug`
- Use Path mapping and map the local file path with the path on the server (/var/www/html)
- Use Path mapping and map the local file path with the path on the server `/var/www/html`
- Add new PHP Remote Debug with Server: `Xdebug`, ide key (session id): `PHPSTORM`
- Add Breakpoints to test
1 change: 0 additions & 1 deletion src/Core/Controller/CoreController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

class CoreController
{

/**
* @param Application $app
*/
Expand Down
1 change: 0 additions & 1 deletion src/Core/Entity/OptionsBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class OptionsBag
{

/** @var AppParameters */
protected $appParameters;

Expand Down
1 change: 0 additions & 1 deletion src/Core/Handler/SecurityHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class SecurityHandler
{

public const ENCRYPT_METHOD = "AES-256-CBC";

/** @var AppParameters */
Expand Down
1 change: 0 additions & 1 deletion tests/Core/Entity/Image/InputImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
class InputImageTest extends BaseTest
{

/**
* Test SaveToTemporaryFileException
*/
Expand Down
1 change: 0 additions & 1 deletion tests/Core/Processor/ProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
class ProcessorTest extends TestCase
{

/**
* @throws \Exception
*/
Expand Down
0