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

replacing stretch with bulsseye

This commit is contained in:
Patrik J. Braun 2022-03-11 13:21:29 +01:00
parent d0f2344ce7
commit 3829c23036
5 changed files with 18 additions and 68 deletions

View File

@ -87,74 +87,12 @@ jobs:
with:
name: pigallery2-release
path: release
build-docker-amd64arm64:
build-dockerx:
runs-on: [ ubuntu-latest ]
needs: [ create-release ]
strategy:
matrix:
container: [ debian-stretch ]
steps:
- name: Set tag
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10}) && echo ::set-output name=type::$(echo ${GITHUB_REF:5})
- name: Checkout
uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: pigallery2-release
path: pigallery2-release
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build docker
uses: docker/build-push-action@v2
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
platforms: linux/amd64,linux/arm64
- name: Push experimental
if: ${{ github.ref == 'refs/heads/experimental' }}
uses: docker/build-push-action@v2
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
platforms: linux/amd64,linux/arm64
push: true
tags: bpatrik/pigallery2:experimental-${{ matrix.container }}
- name: Push nightly on new master commit
if: ${{ startsWith(steps.vars.outputs.type , 'head') && !github.event.issue.pull_request && github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v2
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
platforms: linux/amd64,linux/arm64
push: true
tags: bpatrik/pigallery2:nightly-${{ matrix.container }}
- name: Push release on new Tag
if: ${{ startsWith(steps.vars.outputs.type , 'tag') && !github.event.issue.pull_request }}
uses: docker/build-push-action@v2
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
platforms: linux/amd64,linux/arm64
push: true
tags: |
bpatrik/pigallery2:nightly-${{ matrix.container }}
bpatrik/pigallery2:${{ steps.vars.outputs.tag}}-${{matrix.container}}
bpatrik/pigallery2:latest-${{matrix.container}}
build-docker-all-platforms:
runs-on: [ ubuntu-latest ]
needs: [ create-release ]
strategy:
matrix:
container: [alpine, debian-buster ]
container: [alpine, debian-buster, debian-bullseye ]
steps:
- name: Set tag
@ -211,3 +149,15 @@ jobs:
bpatrik/pigallery2:nightly-${{ matrix.container }}
bpatrik/pigallery2:${{ steps.vars.outputs.tag }}
bpatrik/pigallery2:latest
- name: Push release on new Tag
if: ${{ startsWith(steps.vars.outputs.type , 'tag') && !github.event.issue.pull_request }}
uses: docker/build-push-action@v2
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
bpatrik/pigallery2:nightly-${{ matrix.container }}
bpatrik/pigallery2:${{ steps.vars.outputs.tag }}
bpatrik/pigallery2:latest

View File

@ -5,7 +5,7 @@
You can use [docker](https://docs.docker.com/install/) to run PiGallery2. See all available docker tags [here](https://hub.docker.com/r/bpatrik/pigallery2/tags/).
available tags:
- `v*` (stable): built from the a release with the same version name.
- `latest` (stable): same as the latest `v*`, built with debian stretch
- `latest` (stable): same as the latest `v*`, built with debian buster
- `nightly` : built from the current state of `master`. This might break from time to time.
**Note**: Some changes may require database reset or config changes, see [#317](https://github.com/bpatrik/pigallery2/issues/317) (If you want to reduce the frequency of those, use stable builds (`latest`)
@ -120,6 +120,6 @@ You do not need the `<path to your db file folder>/sqlite.db` line if you don't
## Build the Docker image on your own
You can clone the repository and build the image, or you can just use the 'self-contained' Dockerfile: [debian-stretch/selfcontained/Dockerfile](debian-stretch/selfcontained/Dockerfile)
You can clone the repository and build the image, or you can just use the 'self-contained' Dockerfile: [debian-buster/selfcontained/Dockerfile](debian-buster/selfcontained/Dockerfile)

View File

@ -1,6 +1,6 @@
#-----------------BUILDER-----------------
#-----------------------------------------
FROM node:14-buster AS builder
FROM node:14-bullseye AS builder
COPY pigallery2-release /app
WORKDIR /app
RUN npm install --unsafe-perm
@ -12,7 +12,7 @@ RUN mkdir -p /app/data/config && \
#-----------------MAIN--------------------
#-----------------------------------------
FROM node:14-buster-slim AS main
FROM node:14-bullseye-slim AS main
WORKDIR /app
ENV NODE_ENV=production \
# overrides only the default value of the settings (the actualy value can be overwritten through config.json)