1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

updating buildx docker

This commit is contained in:
Patrik J. Braun 2019-12-20 20:44:15 +01:00
parent 3afd254e29
commit 9cd5c76b5e
2 changed files with 7 additions and 6 deletions

View File

@ -12,12 +12,12 @@ jobs:
- -
name: Checkout name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- -
name: Setup Node.js for use with actions name: Setup Node.js for use with actions
uses: actions/setup-node@v1.1.0 uses: actions/setup-node@v1.1.0
with: with:
version: 12 version: 12
- -
name: Install Deps name: Install Deps
run: npm install --unsafe-perm run: npm install --unsafe-perm
- -
@ -34,7 +34,7 @@ jobs:
- -
name: Checkout name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- -
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
with: with:
name: pigallery2-release name: pigallery2-release
@ -47,7 +47,7 @@ jobs:
- -
name: Available platforms name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }} run: echo ${{ steps.buildx.outputs.platforms }}
- -
name: Docker login name: Docker login
run: | run: |
docker login -u "${DOCKER_REGISTRY_USERNAME}" -p "${DOCKER_REGISTRY_PASSWORD}" docker login -u "${DOCKER_REGISTRY_USERNAME}" -p "${DOCKER_REGISTRY_PASSWORD}"
@ -58,7 +58,7 @@ jobs:
name: Run Buildx stretch name: Run Buildx stretch
run: | run: |
docker buildx build \ docker buildx build \
--platform linux/amd64,linux/arm64,linux/386,linux/arm/v6,linux/arm/v7 \ --platform linux/amd64, linux/arm64, linux/arm/v7 \
--output "type=image,push=true" \ --output "type=image,push=true" \
--tag bpatrik/pigallery2:nightly-stretch \ --tag bpatrik/pigallery2:nightly-stretch \
--file docker/debian-stretch/Dockerfile.build . --file docker/debian-stretch/Dockerfile.build .
@ -70,7 +70,7 @@ jobs:
--output "type=image,push=true" \ --output "type=image,push=true" \
--tag bpatrik/pigallery2:nightly-alpine \ --tag bpatrik/pigallery2:nightly-alpine \
--file docker/alpine/Dockerfile.build . --file docker/alpine/Dockerfile.build .
- -
name: Docker logout name: Docker logout
run: | run: |
docker logout docker logout

View File

@ -21,6 +21,7 @@ ENTRYPOINT ["npm", "start"]
EXPOSE 80 EXPOSE 80
ENV NODE_ENV=production ENV NODE_ENV=production
COPY --from=builder /build /app COPY --from=builder /build /app
RUN apk add ffmpeg
RUN ln -s /app/data/config/config.json config.json RUN ln -s /app/data/config/config.json config.json
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"] VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
HEALTHCHECK --interval=30s --timeout=10s --retries=4 --start-period=60s \ HEALTHCHECK --interval=30s --timeout=10s --retries=4 --start-period=60s \