diff --git a/.github/workflows/github-package.yml b/.github/workflows/github-package.yml index 4b1ea1a..126a4de 100644 --- a/.github/workflows/github-package.yml +++ b/.github/workflows/github-package.yml @@ -22,6 +22,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Install composer dependencies + uses: php-actions/composer@v6 + with: + args: --ignore-platform-reqs + # Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry uses: docker/login-action@v3 @@ -37,11 +42,6 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Install composer dependencies - uses: php-actions/composer@v6 - with: - args: --ignore-platform-reqs - # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.