Compare commits
10 commits
5d62280a4e
...
2fc7c6c06f
Author | SHA1 | Date | |
---|---|---|---|
DataHoarder | 2fc7c6c06f | ||
8c34c7afe9 | |||
abb97f4928 | |||
3b9f4f0d35 | |||
3466f9d68d | |||
121d133311 | |||
27fe810b19 | |||
4dbcf181e5 | |||
bec4974f55 | |||
c01bd0b076 |
34
.github/workflows/automerge.yml
vendored
Normal file
34
.github/workflows/automerge.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: automerge
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- labeled
|
||||
- unlabeled
|
||||
- synchronize
|
||||
- opened
|
||||
- edited
|
||||
- ready_for_review
|
||||
- reopened
|
||||
- unlocked
|
||||
pull_request_review:
|
||||
types:
|
||||
- submitted
|
||||
check_suite:
|
||||
types:
|
||||
- completed
|
||||
status: {}
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
automerge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: automerge
|
||||
name: automerge
|
||||
uses: pascalgn/automerge-action@v0.15.6
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
2
.github/workflows/docker-image-push.yml
vendored
2
.github/workflows/docker-image-push.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
|||
fail-fast: false
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
|
34
.github/workflows/docker-image-test.yml
vendored
34
.github/workflows/docker-image-test.yml
vendored
|
@ -1,10 +1,33 @@
|
|||
---
|
||||
name: Test docker containers
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
diff:
|
||||
name: Check if Dockerfile changed
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
did_change: ${{ steps.diff.outputs.any_changed }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check for changes
|
||||
id: diff
|
||||
run: |
|
||||
if [[ $(git diff --name-only "origin/${GITHUB_BASE_REF}" -- Dockerfile | wc -l) -gt 0 ]]; then
|
||||
echo "any_changed=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "any_changed=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
build:
|
||||
needs: [diff]
|
||||
if: ${{ needs.diff.outputs.did_change == 'true' }}
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
@ -18,6 +41,8 @@ jobs:
|
|||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
@ -58,3 +83,12 @@ jobs:
|
|||
- name: Logs
|
||||
if: always()
|
||||
run: docker logs thelounge
|
||||
|
||||
# This job is used for branch protection rule
|
||||
build-check:
|
||||
name: Build check
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: 'failure() || cancelled()'
|
||||
steps:
|
||||
- run: exit 1
|
||||
|
|
27
.github/workflows/release-please.yml
vendored
Normal file
27
.github/workflows/release-please.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: google-github-actions/release-please-action@v3
|
||||
id: release
|
||||
with:
|
||||
release-type: simple
|
||||
package-name: thelounge-docker
|
||||
prerelease: true
|
||||
include-v-in-tag: false
|
||||
labels: |
|
||||
automerge
|
34
.github/workflows/validate.yml
vendored
Normal file
34
.github/workflows/validate.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
name: Validate Renovate config
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
name: Validate renovate config
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check for changes
|
||||
id: diff
|
||||
run: |
|
||||
if [[ $(git diff --name-only "origin/${GITHUB_BASE_REF}" -- renovate.json | wc -l) -gt 0 ]]; then
|
||||
echo "any_changed=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "any_changed=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- shell: bash
|
||||
if: ${{ steps.diff.outputs.any_changed == 'true' }}
|
||||
run: |
|
||||
set +o pipefail
|
||||
npx -y -p renovate -c renovate-config-validator \
|
||||
| tee /dev/stderr \
|
||||
| grep -Evz '(ERROR|could not be parsed)'
|
22
CHANGELOG.md
22
CHANGELOG.md
|
@ -1,5 +1,27 @@
|
|||
# Changelog
|
||||
|
||||
## [4.4.1-rc.2](https://github.com/thelounge/thelounge-docker/compare/4.4.1-rc.1...4.4.1-rc.2) (2023-06-01)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* automatic releases ([#165](https://github.com/thelounge/thelounge-docker/issues/165)) ([bec4974](https://github.com/thelounge/thelounge-docker/commit/bec4974f558c376acaed9a32ce219ec46239101f))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **release-please:** target master instead of main ([#173](https://github.com/thelounge/thelounge-docker/issues/173)) ([abb97f4](https://github.com/thelounge/thelounge-docker/commit/abb97f49284efe06e05244d6c3401089126c8190))
|
||||
* **renovate:** fix npm versioning range ([#169](https://github.com/thelounge/thelounge-docker/issues/169)) ([27fe810](https://github.com/thelounge/thelounge-docker/commit/27fe810b19556af2806d321e2c63e0995d07831b))
|
||||
* **renovate:** set ignoreUnstable: false ([#171](https://github.com/thelounge/thelounge-docker/issues/171)) ([3466f9d](https://github.com/thelounge/thelounge-docker/commit/3466f9d68d6c622eac20bbed3ddcb4b86e1b0f37))
|
||||
|
||||
|
||||
### Miscellaneous Chores
|
||||
|
||||
* **deps:** update dependency thelounge to v4.4.1-rc.2 ([#172](https://github.com/thelounge/thelounge-docker/issues/172)) ([3b9f4f0](https://github.com/thelounge/thelounge-docker/commit/3b9f4f0d359dfcf2eaac271d341889c0f23e055d))
|
||||
|
||||
## 4.4.1-rc.1 (2023-05-21)
|
||||
- Bump [`thelounge`][1] to [`4.4.1-rc.1`](https://github.com/thelounge/thelounge/releases/tag/v4.4.1-rc.1).
|
||||
|
||||
## 4.4.0 (2023-05-14)
|
||||
- Bump [`thelounge`][1] to [`4.4.0`](https://github.com/thelounge/thelounge/releases/tag/v4.4.0).
|
||||
- Also publish images to ghcr.io/thelounge/thelounge, which henceforth is the default repository.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
FROM node:lts-alpine
|
||||
|
||||
ARG THELOUNGE_VERSION=4.4.0
|
||||
ARG THELOUNGE_REPOSITORY=git+https://github.com/thelounge/thelounge.git
|
||||
ARG THELOUNGE_VERSION=4.4.1-rc.2
|
||||
|
||||
LABEL org.opencontainers.image.title "Official The Lounge image"
|
||||
LABEL org.opencontainers.image.description "Official Docker image for The Lounge, a modern web IRC client designed for self-hosting."
|
||||
|
@ -27,7 +28,7 @@ COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
|||
# Install thelounge.
|
||||
RUN apk --update --no-cache --virtual build-deps add python3 build-base git && \
|
||||
ln -sf python3 /usr/bin/python && \
|
||||
yarn --non-interactive --frozen-lockfile global add thelounge@${THELOUNGE_VERSION} && \
|
||||
yarn --non-interactive --frozen-lockfile global add ${THELOUNGE_REPOSITORY}#${THELOUNGE_VERSION} && \
|
||||
yarn --non-interactive cache clean && \
|
||||
apk del --purge build-deps && \
|
||||
rm -rf /root/.cache /tmp /usr/bin/python
|
||||
|
|
9
Makefile
9
Makefile
|
@ -1,9 +0,0 @@
|
|||
THELOUNGE_VERSION?=4.4.0
|
||||
ORGANISATION?=thelounge
|
||||
|
||||
all: main
|
||||
|
||||
main:
|
||||
docker build -t ${ORGANISATION}/thelounge:${THELOUNGE_VERSION} --build-arg THELOUNGE_VERSION=${THELOUNGE_VERSION} .
|
||||
|
||||
.PHONY: main
|
|
@ -1,7 +1,8 @@
|
|||
version: '2'
|
||||
services:
|
||||
thelounge:
|
||||
image: ghcr.io/thelounge/thelounge:latest
|
||||
build:
|
||||
context: ./
|
||||
container_name: thelounge
|
||||
ports:
|
||||
- "9000:9000"
|
||||
|
|
25
renovate.json
Normal file
25
renovate.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"automerge": true,
|
||||
"platformAutomerge": true,
|
||||
"automergeType": "pr",
|
||||
"commitBody": "Release-As: {{newVersion}}",
|
||||
"enabledManagers": ["regex"],
|
||||
"regexManagers": [
|
||||
{
|
||||
"fileMatch": ["Dockerfile"],
|
||||
"matchStrings": [
|
||||
"THELOUNGE_VERSION\\??=(?<currentValue>[^\\s]+)"
|
||||
],
|
||||
"datasourceTemplate": "npm",
|
||||
"packageNameTemplate": "thelounge",
|
||||
"depNameTemplate": "thelounge"
|
||||
}
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"matchPackageNames": ["thelounge"],
|
||||
"ignoreUnstable": false
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue