mirror of
https://github.com/tiredofit/docker-collabora-online.git
synced 2024-05-06 08:23:10 +02:00
Release 2.4.20 - See CHANGELOG.md
This commit is contained in:
parent
538a09ea57
commit
9b97b18c23
130
.github/workflows/main.yml
vendored
130
.github/workflows/main.yml
vendored
|
@ -1,127 +1,15 @@
|
||||||
### Application Level Image CI
|
name: "build_image"
|
||||||
### Dave Conroy <dave at tiredofit dot ca>
|
|
||||||
|
|
||||||
name: 'build'
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- '**'
|
- "**"
|
||||||
- '!README.md'
|
- "!README.md"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
build:
|
||||||
runs-on: ubuntu-latest
|
uses: tiredofit/github_actions/.github/workflows/default_amd64.yml@main
|
||||||
steps:
|
#uses: tiredofit/github_actions/.github/workflows/default_amd64.yml@main
|
||||||
# - name: FreeUp
|
#uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
|
||||||
# id: free
|
#uses: tiredofit/github_actions/.github/workflows/default_amd64_arm64.yml@main
|
||||||
# run: |
|
secrets: inherit
|
||||||
# before=$(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}')
|
|
||||||
# sudo apt-get remove -y '^dotnet-.*'
|
|
||||||
# sudo apt-get remove -y '^llvm-.*'
|
|
||||||
# sudo apt-get remove -y 'php.*'
|
|
||||||
# sudo apt-get remove -y '^mongodb-.*'
|
|
||||||
# sudo apt-get remove -y '^mysql-.*'
|
|
||||||
# sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
|
|
||||||
# sudo apt-get -y autoremove
|
|
||||||
# sudo apt-get clean
|
|
||||||
# after=$(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}')
|
|
||||||
# saved=$((after-before))
|
|
||||||
# echo "Saved: $saved"
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Prepare
|
|
||||||
id: prep
|
|
||||||
run: |
|
|
||||||
DOCKER_IMAGE=${GITHUB_REPOSITORY/docker-/}
|
|
||||||
if [[ $GITHUB_REF == refs/heads/* ]]; then
|
|
||||||
if [[ $GITHUB_REF == refs/heads/*/* ]] ; then
|
|
||||||
BRANCH="${DOCKER_IMAGE}:$(echo $GITHUB_REF | sed "s|refs/heads/||g" | sed "s|/|-|g")"
|
|
||||||
else
|
|
||||||
BRANCH=${GITHUB_REF#refs/heads/}
|
|
||||||
fi
|
|
||||||
|
|
||||||
case ${BRANCH} in
|
|
||||||
"main" | "master" )
|
|
||||||
BRANCHTAG="${DOCKER_IMAGE}:latest"
|
|
||||||
;;
|
|
||||||
"develop" )
|
|
||||||
BRANCHTAG="${DOCKER_IMAGE}:develop"
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
if [ -n "${{ secrets.LATEST }}" ] ; then
|
|
||||||
if [ "${BRANCHTAG}" = "${{ secrets.LATEST }}" ]; then
|
|
||||||
BRANCHTAG="${DOCKER_IMAGE}:${BRANCH},${DOCKER_IMAGE}:${BRANCH}-latest,${DOCKER_IMAGE}:latest"
|
|
||||||
else
|
|
||||||
BRANCHTAG="${DOCKER_IMAGE}:${BRANCH},${DOCKER_IMAGE}:${BRANCH}-latest"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
BRANCHTAG="${DOCKER_IMAGE}:${BRANCH},${DOCKER_IMAGE}:${BRANCH}-latest"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
|
||||||
GITTAG="${DOCKER_IMAGE}:$(echo $GITHUB_REF | sed 's|refs/tags/||g')"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${BRANCHTAG}" ] && [ -n "${GITTAG}" ]; then
|
|
||||||
TAGS=${BRANCHTAG},${GITTAG}
|
|
||||||
else
|
|
||||||
TAGS="${BRANCHTAG}${GITTAG}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ::set-output name=tags::${TAGS}
|
|
||||||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
with:
|
|
||||||
platforms: all
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
id: buildx
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
|
|
||||||
- name: Login to DockerHub
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Label
|
|
||||||
id: Label
|
|
||||||
run: |
|
|
||||||
if [ -f "Dockerfile" ] ; then
|
|
||||||
sed -i "/FROM .*/a LABEL tiredofit.image.git_repository=\"https://github.com/${GITHUB_REPOSITORY}\"" Dockerfile
|
|
||||||
sed -i "/FROM .*/a LABEL tiredofit.image.git_commit=\"${GITHUB_SHA}\"" Dockerfile
|
|
||||||
sed -i "/FROM .*/a LABEL tiredofit.image.git_committed_by=\"${GITHUB_ACTOR}\"" Dockerfile
|
|
||||||
sed -i "/FROM .*/a LABEL tiredofit.image.image_build_date=\"$(date +'%Y-%m-%d %H:%M:%S')\"" Dockerfile
|
|
||||||
if [ -f "CHANGELOG.md" ] ; then
|
|
||||||
sed -i "/FROM .*/a LABEL tiredofit.image.git_changelog_version=\"$(head -n1 ./CHANGELOG.md | awk '{print $2}')\"" Dockerfile
|
|
||||||
mkdir -p install/assets/.changelogs ; cp CHANGELOG.md install/assets/.changelogs/${GITHUB_REPOSITORY/\//_}.md
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
|
||||||
sed -i "/FROM .*/a LABEL tiredofit.image.git_tag=\"${GITHUB_REF#refs/tags/v}\"" Dockerfile
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $GITHUB_REF == refs/heads/* ]]; then
|
|
||||||
sed -i "/FROM .*/a LABEL tiredofit.image.git_branch=\"${GITHUB_REF#refs/heads/}\"" Dockerfile
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile
|
|
||||||
platforms: linux/amd64
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.prep.outputs.tags }}
|
|
||||||
|
|
16
.github/workflows/manual.yml
vendored
Normal file
16
.github/workflows/manual.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: "manual_build_image"
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
Manual Build:
|
||||||
|
description: 'Manual Build'
|
||||||
|
required: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
uses: tiredofit/github_actions/.github/workflows/default_amd64.yml@main
|
||||||
|
#uses: tiredofit/github_actions/.github/workflows/default_amd64.yml@main
|
||||||
|
#uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
|
||||||
|
#uses: tiredofit/github_actions/.github/workflows/default_amd64_arm64.yml@main
|
||||||
|
secrets: inherit
|
|
@ -1,3 +1,10 @@
|
||||||
|
## 2.4.20 2023-01-31 <dave at tiredofit dot ca>
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Collabora Office cp-22.05.9-5
|
||||||
|
- Colaabora Online cp-22.05.9-5
|
||||||
|
|
||||||
|
|
||||||
## 2.4.19 2023-01-18 <dave at tiredofit dot ca>
|
## 2.4.19 2023-01-18 <dave at tiredofit dot ca>
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -12,10 +12,10 @@ ARG APP_NAME
|
||||||
ARG APP_BRAND
|
ARG APP_BRAND
|
||||||
|
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
ENV COLLABORA_ONLINE_VERSION=${COLLABORA_ONLINE_VERSION:-"cp-22.05.9-3"} \
|
ENV COLLABORA_ONLINE_VERSION=${COLLABORA_ONLINE_VERSION:-"cp-22.05.9-5"} \
|
||||||
COLLABORA_ONLINE_REPO_URL=${COLLABORA_ONLINE_REPO_URL:-"https://github.com/CollaboraOnline/online"} \
|
COLLABORA_ONLINE_REPO_URL=${COLLABORA_ONLINE_REPO_URL:-"https://github.com/CollaboraOnline/online"} \
|
||||||
#
|
#
|
||||||
LIBREOFFICE_VERSION=${LIBREOFFICE_VERSION:-"cp-22.05.9-3"} \
|
LIBREOFFICE_VERSION=${LIBREOFFICE_VERSION:-"cp-22.05.9-5"} \
|
||||||
LIBREOFFICE_REPO_URL=${LIBREOFFICE_REPO_URL:-"https://github.com/LibreOffice/core"} \
|
LIBREOFFICE_REPO_URL=${LIBREOFFICE_REPO_URL:-"https://github.com/LibreOffice/core"} \
|
||||||
#
|
#
|
||||||
APP_NAME=${APP_NAME:-"Document Editor"} \
|
APP_NAME=${APP_NAME:-"Document Editor"} \
|
||||||
|
|
Loading…
Reference in a new issue