diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 958685d..7824b57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Codesniffer - uses: pipeline-components/php-codesniffer@v0.32.1 + uses: pipeline-components/php-codesniffer@v0.35.1 with: options: -s -p --colors --extensions=php --runtime-set testVersion 7.4 php-codesniffer80: @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Codesniffer - uses: pipeline-components/php-codesniffer@v0.32.1 + uses: pipeline-components/php-codesniffer@v0.35.1 with: options: -s -p --colors --extensions=php --runtime-set testVersion 8.0 php-codesniffer81: @@ -32,6 +32,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Codesniffer - uses: pipeline-components/php-codesniffer@v0.32.1 + uses: pipeline-components/php-codesniffer@v0.35.1 with: options: -s -p --colors --extensions=php --runtime-set testVersion 8.1 diff --git a/Dockerfile b/Dockerfile index a3b3744..5f922fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,8 +25,11 @@ FROM node:20-alpine AS core RUN apk --no-cache add \ git -# Clone github.com/2pisoftware/cmfive-core +# Set the default branch to clone ARG BUILT_IN_CORE_BRANCH=main +# Invalidate the cache if the branch has changed +ADD https://api.github.com/repos/2pisoftware/cmfive-core/git/refs/heads/$BUILT_IN_CORE_BRANCH /version.json +# Clone github.com/2pisoftware/cmfive-core RUN git clone --depth 1 https://github.com/2pisoftware/cmfive-core.git -b $BUILT_IN_CORE_BRANCH # Get the repo metadata @@ -45,7 +48,7 @@ RUN cd /cmfive-core/system/templates/base && \ # This stage builds the final Cosine image # Use the Alpine Linux base image -FROM alpine:3.19 +FROM alpine:3.19.4 # PHP version # note: see Alpine packages for available versions