Skip to content
Merged
29 changes: 29 additions & 0 deletions .github/actions/build-and-tag-locally/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,32 @@ runs:
echo "ReJSON test failed: expected 'allkeys-lru', got $result"
exit 1
fi
- name: Test the entrypoint
id: test_entrypoint
if: ${{ contains(fromJSON('["amd64", "i386"]'), steps.platform.outputs.display_name) }}
shell: bash
run: >
cd test && env
PLATFORM=${{ steps.platform.outputs.display_name }}
REDIS_IMG=${{ github.sha }}:${{ steps.platform.outputs.display_name }}
./run-entrypoint-tests.sh
-- --output-junit-xml=report-entrypoint.xml

- name: Test Report
uses: dorny/test-reporter@v2
# run this step even if previous step failed, but not if it was skipped
if: ${{ !cancelled() && steps.test_entrypoint.conclusion != 'skipped' }}
with:
name: Entrypoint Tests
path: test/report-entrypoint.xml
reporter: java-junit

- name: Push image
uses: docker/build-push-action@v6
if: ${{ inputs.publish_image == 'true' && contains(fromJSON('["amd64"]'), steps.platform.outputs.display_name) }}
with:
context: ${{ inputs.distribution }}
push: true
tags: ${{ inputs.registry_repository }}:${{ github.sha }}-${{ inputs.distribution }}
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 2 additions & 2 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- linux/mips64le
- linux/ppc64le
- linux/s390x
# - linux/arm64 # Currently the unstable isn't running on arm64
- linux/arm64
- linux/riscv64
exclude:
- distribution: alpine
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: unstable
ref: ${{ github.event.pull_request && github.sha || 'unstable' }}
- uses: ./.github/actions/build-and-tag-locally
with:
distribution: ${{ matrix.distribution }}
Expand Down
10 changes: 7 additions & 3 deletions alpine/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

128 changes: 116 additions & 12 deletions alpine/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading