diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2a3b639..b3ffc5f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -93,3 +93,5 @@ jobs: platforms: linux/amd64,linux/arm64,linux/arm/v6 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + secrets: | + pixabay=${{ secrets.PIXABAY_API_KEY }} diff --git a/Dockerfile.demo b/Dockerfile.demo index 9cc3e77..3390c3d 100644 --- a/Dockerfile.demo +++ b/Dockerfile.demo @@ -1,9 +1,31 @@ -FROM rigon/photo-gallery:dev +FROM python:alpine + +RUN pip install pixabay + +RUN --mount=type=secret,id=pixabay \ + PIXABAY_API_KEY=$(cat /run/secrets/pixabay) && \ + python <