mirror of
https://github.com/gilbN/theme.park.git
synced 2024-10-27 06:12:54 +01:00
hmm
This commit is contained in:
parent
071f0af975
commit
cacac7385a
26
.github/workflows/docker-build.yml
vendored
26
.github/workflows/docker-build.yml
vendored
@ -24,14 +24,20 @@ on:
|
||||
jobs:
|
||||
build-and-push-it-to-the-limit:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
architecture: [armhf, aarch64, amd64]
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get the version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${{ github.event.release.tag_name }}
|
||||
- name: Prepare
|
||||
id: prep
|
||||
run: |
|
||||
ARCHITECTURE=${{ matrix.architecture }}
|
||||
echo ::set-output name=VERSION::${{ github.event.release.tag_name }}
|
||||
echo ::set-output name=platform::${ARCHITECTURE//-/\/}
|
||||
|
||||
- name: Set current date as env variable
|
||||
id: date_time
|
||||
@ -74,9 +80,9 @@ jobs:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: latest, ${{ steps.get_version.outputs.VERSION }}
|
||||
tags: latest, ${{ steps.prep.outputs.VERSION }}
|
||||
labels: ${{ steps.metadata.outputs.labels }}
|
||||
build-args: TP_RELEASE=${{ steps.get_version.outputs.VERSION }},BUILD_DATE=${{ steps.date_time.outputs.NOW }}
|
||||
build-args: TP_RELEASE=${{ steps.prep.outputs.VERSION }},BUILD_DATE=${{ steps.date_time.outputs.NOW }}
|
||||
|
||||
- name: manual build&push master
|
||||
if: ${{ github.event.inputs.branch == 'master' }}
|
||||
@ -87,7 +93,7 @@ jobs:
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: latest, ${{ github.event.inputs.tag }}
|
||||
labels: ${{ steps.metadata.outputs.labels }}
|
||||
build-args: TP_RELEASE=${{ steps.get_version.outputs.VERSION }},BUILD_DATE=${{ steps.date_time.outputs.NOW }}
|
||||
build-args: TP_RELEASE=${{ steps.prep.outputs.VERSION }},BUILD_DATE=${{ steps.date_time.outputs.NOW }}
|
||||
|
||||
- name: build&push develop
|
||||
if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
|
||||
@ -98,15 +104,15 @@ jobs:
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.metadata.outputs.tags }}
|
||||
labels: ${{ steps.metadata.outputs.labels }}
|
||||
build-args: TP_RELEASE=${{ steps.get_version.outputs.VERSION }},BUILD_DATE=${{ steps.date_time.outputs.NOW }}
|
||||
build-args: TP_RELEASE=${{ steps.prep.outputs.VERSION }},BUILD_DATE=${{ steps.date_time.outputs.NOW }}
|
||||
|
||||
- name: build&push testing
|
||||
if: ${{ github.ref == 'refs/heads/testing' || github.event.inputs.branch == 'testing' }}
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
platforms: amd64,arm32v7,arm64v8
|
||||
file: ./${{ matrix.architecture }}.Dockerfile
|
||||
platforms: ${{ steps.prep.outputs.platform }}
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.metadata.outputs.tags }}
|
||||
labels: ${{ steps.metadata.outputs.labels }}
|
||||
build-args: TP_RELEASE=${{ steps.get_version.outputs.VERSION }},BUILD_DATE=${{ steps.date_time.outputs.NOW }}
|
||||
build-args: TP_RELEASE=${{ steps.prep.outputs.VERSION }},BUILD_DATE=${{ steps.date_time.outputs.NOW }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:${BUILDPLATFORM}-3.14
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.14
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
|
23
Dockerfile.aarch64
Normal file
23
Dockerfile.aarch64
Normal file
@ -0,0 +1,23 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.14
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG TP_RELEASE
|
||||
LABEL build_version="Version:- ${VERSION} Build-date:- ${BUILD_DATE} Platform: ${BUILDPLATFORM}"
|
||||
LABEL maintainer="gilbn"
|
||||
LABEL org.opencontainers.image.description DESCRIPTION
|
||||
|
||||
RUN \
|
||||
echo " ## Installing packages ## " && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
python3 && \
|
||||
echo "**** install theme.park ****" && \
|
||||
mkdir -p /app/themepark
|
||||
|
||||
# copy local files
|
||||
WORKDIR /app
|
||||
COPY css/ /app/themepark/css/
|
||||
COPY resources/ /app/themepark/resources/
|
||||
COPY themes.py index.html CNAME /app/themepark/
|
||||
|
||||
COPY docker/root/ /
|
23
Dockerfile.armhf
Normal file
23
Dockerfile.armhf
Normal file
@ -0,0 +1,23 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.14
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG TP_RELEASE
|
||||
LABEL build_version="Version:- ${VERSION} Build-date:- ${BUILD_DATE} Platform: ${BUILDPLATFORM}"
|
||||
LABEL maintainer="gilbn"
|
||||
LABEL org.opencontainers.image.description DESCRIPTION
|
||||
|
||||
RUN \
|
||||
echo " ## Installing packages ## " && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
python3 && \
|
||||
echo "**** install theme.park ****" && \
|
||||
mkdir -p /app/themepark
|
||||
|
||||
# copy local files
|
||||
WORKDIR /app
|
||||
COPY css/ /app/themepark/css/
|
||||
COPY resources/ /app/themepark/resources/
|
||||
COPY themes.py index.html CNAME /app/themepark/
|
||||
|
||||
COPY docker/root/ /
|
Loading…
Reference in New Issue
Block a user