Skip to content
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

Enforce lower case #11

Merged
merged 1 commit into from
Dec 21, 2024
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
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ jobs:
expected_csv: 'linux/amd64,linux/arm64'
with:
dockerfile: tests/Dockerfile*
- name: Enforce LowerCase (Dockerfile)
expected: '["linux/amd64","linux/arm64"]'
expected_csv: 'linux/amd64,linux/arm64'
with:
dockerfile: tests/Dockerfile-cameCase
- name: Enforce LowerCase (Image)
expected: '["linux/amd64","linux/arm64"]'
expected_csv: 'linux/amd64,linux/arm64'
with:
image: ghcr.io/WyriHaximusNet/php:8.3-zts-alpine-dev
steps:
- uses: actions/checkout@v4
- name: OCI Image Supported Platforms
Expand Down
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ runs:
shell: bash
run: |
if [ "${{ inputs.image }}" == "" ] ; then
printf "image=%s" $(echo "${{ steps.from.outputs.from }}") >> $GITHUB_OUTPUT
printf "image=%s" $(echo "${{ steps.from.outputs.from }}" | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
else
printf "image=%s" $(echo "${{ inputs.image }}") >> $GITHUB_OUTPUT
printf "image=%s" $(echo "${{ inputs.image }}" | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
fi
- name: Get Platforms from Manifest
id: platform
Expand Down
14 changes: 14 additions & 0 deletions tests/Dockerfile-cameCase
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ghcr.io/WyriHaximusNet/php:8.3-zts-alpine-dev AS install-dependencies

WORKDIR /opt/app

COPY ./composer.* /opt/app/
COPY ./etc/ /opt/app/etc/
COPY ./src/ /opt/app/src/
RUN composer install --ansi --no-interaction --prefer-dist --no-progress -o --no-cache --no-scripts

FROM ghcr.io/WyriHaximusNet/php:8.3-zts-alpine AS runtime

WORKDIR /opt/app

COPY --from=install-dependencies /opt/app/ /opt/app/
Loading