ccache-upload-redis / ccache-download-redis GitHub Action
An GitHub Action for using ccache-upload-redis / ccache-download-redis to uploads / downloads the contents of the local ccache cache from a Redis remote storage.
Usage
name: Test ccache-download-upload-redis
on:
workflow_dispatch:
jobs:
# Label of the container job
container-job:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Service containers to run with `container-job`
services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis:7.0.10-alpine3.17
# Set health checks to wait until redis has started
options: >-
--interactive
--hostname redis
--add-host=host.docker.internal:host-gateway
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
--restart always
ports:
- 6379/tcp
# get the rendom port via ${{ job.services.redis.ports['6379'] }}
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idservices
# https://docs.github.com/en/actions/learn-github-actions/contexts#job-context
# Maps port 6379 on service container to the host
#- 6379:6379
steps:
- name: "Set some redis settings"
run: |
docker network ls
docker network ls --format='{{.ID }} {{.Name}}'
docker inspect ${{ job.services.redis.id }}
docker exec ${{ job.services.redis.id }} /bin/sh -c 'echo "cat /etc/redis/redis.conf ||:" '
docker exec ${{ job.services.redis.id }} /bin/sh -x -c 'mkdir -p /etc/redis ||: '
docker exec ${{ job.services.redis.id }} /bin/sh -x -c 'echo "save 60 100" >> /etc/redis/redis.conf'
docker exec ${{ job.services.redis.id }} /bin/sh -x -c 'echo "loglevel verbose" >> /etc/redis/redis.conf'
docker exec ${{ job.services.redis.id }} /bin/sh -x -c 'echo "# see https://github.community/t/how-do-i-properly-override-a-service-entrypoint/17435/8" >> /etc/redis/redis.conf'
docker exec ${{ job.services.redis.id }} /bin/sh -x -c 'echo "# https://hub.docker.com/_/redis" >> /etc/redis/redis.conf'
docker kill --signal=SIGHUP ${{ job.services.redis-y9g98g58d.id }} ||:
- name: Checkout repository
uses: actions/checkout@v3
- upload-test: "upload-test"
run: |
ccache-upload-redis
env: |
REDIS_CONF='localhost:${{ job.services.redis.ports['6379'] }}'
CCACHE_DIR='~/.cache/ccache'
- download-test: "download-test"
run: |
ccache-download-redis
env: |
REDIS_CONF='localhost:${{ job.services.redis.ports['6379'] }}'
CCACHE_DIR='~/.cache/ccache'
- name: Connect REDIS
uses: ./
with:
host: ${{ variable.REDIS_SERVER }}
username: ${{ variable.USERNAME }}
password: ${{ variable.PASSWORD }}
ccachedir: ${{ variable.CCACHEDIR }}
Metadata
Release files for ccache-upload-redis 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ccache_upload_redis-0.2.0.tar.gz | 4.2 kB | Without provenance | Details for ccache_upload_redis-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ccache_upload_redis-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ccache_upload_redis-0.2.0-py3-none-any.whl |
Total release size: 10.0 kB
Release files / ccache_upload_redis-0.2.0.tar.gz
| Download URL | ccache_upload_redis-0.2.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef79c3eda890cb3431dcd290bb62fc6cd0270c210db82a2bc203bc6d2ef50905
|
|
BLAKE2b-256 checksum How to use checksums |
5a4960a8e1b6eab7aec52c7e5366488cacfdf8008aff46be801ca1177f235fc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.2 Linux/5.10.0-21-amd64
|
Release files / ccache_upload_redis-0.2.0-py3-none-any.whl
| Download URL | ccache_upload_redis-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d03ed068fce2d94d19d030e564b2c12d18fe2622418fef4f798daabf48c78a8
|
|
BLAKE2b-256 checksum How to use checksums |
7c975496284c8e935dafc8911800963fc5fb10cb1ed4c94d729773890aad0565
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.2 Linux/5.10.0-21-amd64
|
Security for ccache-upload-redis 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.