Skip to content

Commit 6c30c92

Browse files
Peter-ShadamiBs
authored andcommitted
Fix permissions for config files and introduce entrypoint testing (redis#451)
1 parent 46c379e commit 6c30c92

File tree

5 files changed

+2523
-25
lines changed

5 files changed

+2523
-25
lines changed

.github/actions/build-and-tag-locally/action.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,32 @@ runs:
257257
echo "ReJSON test failed: expected 'allkeys-lru', got $result"
258258
exit 1
259259
fi
260+
- name: Test the entrypoint
261+
id: test_entrypoint
262+
if: ${{ contains(fromJSON('["amd64", "i386"]'), steps.platform.outputs.display_name) }}
263+
shell: bash
264+
run: >
265+
cd test && env
266+
PLATFORM=${{ steps.platform.outputs.display_name }}
267+
REDIS_IMG=${{ github.sha }}:${{ steps.platform.outputs.display_name }}
268+
./run-entrypoint-tests.sh
269+
-- --output-junit-xml=report-entrypoint.xml
270+
271+
- name: Test Report
272+
uses: dorny/test-reporter@v2
273+
# run this step even if previous step failed, but not if it was skipped
274+
if: ${{ !cancelled() && steps.test_entrypoint.conclusion != 'skipped' }}
275+
with:
276+
name: Entrypoint Tests
277+
path: test/report-entrypoint.xml
278+
reporter: java-junit
279+
280+
- name: Push image
281+
uses: docker/build-push-action@v6
282+
if: ${{ inputs.publish_image == 'true' && contains(fromJSON('["amd64"]'), steps.platform.outputs.display_name) }}
283+
with:
284+
context: ${{ inputs.distribution }}
285+
push: true
286+
tags: ${{ inputs.registry_repository }}:${{ github.sha }}-${{ inputs.distribution }}
287+
cache-from: type=gha
288+
cache-to: type=gha,mode=max

alpine/docker-entrypoint.sh

Lines changed: 116 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

debian/docker-entrypoint.sh

Lines changed: 117 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)