8 Commits

Author SHA1 Message Date
classabbyamp 68eaeff476 update to 2.7.5 2022-06-08 21:16:14 -07:00
0x5c f690ebb357 Merge pull request #444 from miaowware/ci-lint
[CI/linting]: Change trigger and flake8 output
2022-05-17 21:23:46 -04:00
0x5c 51e571b97d [CI/linting]: Change trigger and flake8 output
Fixes #443
2022-05-17 21:20:10 -04:00
classabbyamp 85ac05c337 Merge pull request #438 from miaowware/clog-enforce-workflow
CI updates
2021-11-06 00:22:55 -04:00
classabbyamp 718b2a7a80 add python 3.10 to linting checks 2021-11-05 23:34:26 -04:00
classabbyamp 0189db8792 add workflow to enforce changelog updating before merge 2021-11-05 23:31:14 -04:00
classabbyamp 80d6a989cc move to new void docker image, clean up dockerfile (#436)
Co-authored-by: 0x5c <dev@0x5c.io>
2021-11-05 17:51:46 -04:00
classabbyamp 8f1782dcc0 ensure docker image id is lowercase (#437)
fixes #413
2021-11-05 17:31:45 -04:00
7 changed files with 52 additions and 55 deletions
+12
View File
@@ -0,0 +1,12 @@
name: "Checks"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dangoslen/changelog-enforcer@v2
+9 -4
View File
@@ -27,7 +27,9 @@ jobs:
- name: Build image
id: build_image
run: |
IMAGE_NAME=${GITHUB_REPOSITORY#*/}
IMAGE_ID=${GITHUB_REPOSITORY,,}
IMAGE_NAME=${IMAGE_ID#*/}
echo ::set-output name=image_id::$IMAGE_ID
echo ::set-output name=image_name::$IMAGE_NAME
docker build . --file Dockerfile -t $IMAGE_NAME
@@ -42,7 +44,7 @@ jobs:
id: tag_image
run: |
IMAGE_NAME=${{ steps.build_image.outputs.image_name }}
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
IMAGE_ID=ghcr.io/${{ steps.build_image.outputs.image_id }}
echo IMAGE_ID=$IMAGE_ID
echo ::set-output name=image_id::$IMAGE_ID
@@ -62,8 +64,11 @@ jobs:
- name: Push images to registry
run: |
[[ "${{ steps.tag_image.outputs.version }}" != "dev" ]] && docker push ${{ steps.tag_image.outputs.image_id }}:latest || true
docker push ${{ steps.tag_image.outputs.image_id }}:${{ steps.tag_image.outputs.version }}
VERSION=${{ steps.tag_image.outputs.version }}
IMAGE_ID=${{ steps.tag_image.outputs.image_id }}
[[ "$VERSION" != "dev" ]] && docker push $IMAGE_ID:latest || true
docker push $IMAGE_ID:$VERSION
- name: Deploy official images
id: deploy_images
+9 -31
View File
@@ -1,44 +1,22 @@
name: Linting
on: [push,pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
precheck:
runs-on: ubuntu-20.04
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
# skip concurrent jobs if they are on the same thing
concurrent_skipping: 'same_content'
# never skip PR + manual/scheduled runs
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
flake8:
needs: precheck
if: ${{ needs.precheck.outputs.should_skip != 'true' }}
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.9]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
python-version: "3.9"
architecture: x64
- name: Install flake8
run: pip install flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with:
checkName: 'flake8' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: flake8 --format='::error title=flake8,file=%(path)s,line=%(row)d,col=%(col)d::[%(code)s] %(text)s'
+7 -1
View File
@@ -7,6 +7,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
## [2.7.5] - 2022-06-08
### Changed
- Bumped ctyparser to 2.2.1.
## [2.7.4] - 2021-10-07
### Added
- a new way to support qrm's development.
@@ -214,7 +219,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## 1.0.0 - 2019-07-31 [YANKED]
[Unreleased]: https://github.com/miaowware/qrm2/compare/v2.7.4...HEAD
[Unreleased]: https://github.com/miaowware/qrm2/compare/v2.7.5...HEAD
[2.7.5]: https://github.com/miaowware/qrm2/releases/tag/v2.7.5
[2.7.4]: https://github.com/miaowware/qrm2/releases/tag/v2.7.4
[2.7.3]: https://github.com/miaowware/qrm2/releases/tag/v2.7.3
[2.7.2]: https://github.com/miaowware/qrm2/releases/tag/v2.7.2
+12 -11
View File
@@ -1,17 +1,19 @@
FROM voidlinux/voidlinux
FROM ghcr.io/void-linux/void-linux:latest-mini-x86_64
LABEL org.opencontainers.image.source https://github.com/miaowware/qrm2
COPY . /app
WORKDIR /app
ENV PYTHON_BIN python3
ARG REPOSITORY=https://repo-us.voidlinux.org/current
ARG PKGS="cairo libjpeg-turbo"
ARG UID 1000
ARG GID 1000
RUN \
echo "**** update packages ****" && \
xbps-install -Suy && \
echo "**** update system ****" && \
xbps-install -SuyM -R ${REPOSITORY} && \
echo "**** install system packages ****" && \
export runtime_deps='cairo libjpeg-turbo' && \
export runtime_pkgs="${runtime_deps} python3-pip python3" && \
xbps-install -y $runtime_pkgs && \
xbps-install -yM -R ${REPOSITORY} ${PKGS} python3 python3-pip && \
echo "**** install pip packages ****" && \
pip3 install -U pip setuptools wheel && \
pip3 install -r requirements.txt && \
@@ -21,10 +23,9 @@ RUN \
/tmp/* \
/var/cache/xbps/*
ARG UID
ENV UID=${UID:-1000}
ARG GID
ENV GID=${GID:-1000}
ENV PYTHON_BIN python3
ENV PYTHONUNBUFFERED 1
USER $UID:$GID
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]
+2 -7
View File
@@ -23,14 +23,11 @@ This is the easiest method for running the bot without any modifications.
version: '3'
services:
qrm2:
image: "docker.pkg.github.com/miaowware/qrm2/qrm2:latest"
image: "ghcr.io/miaowware/qrm2:latest"
restart: on-failure
volumes:
- "./data:/app/data:rw"
environment:
- PYTHONUNBUFFERED=1
```
*Note that Github's registry requires [a few extra steps](https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-docker-for-use-with-github-packages) during the initial setup.*
3. Create a subdirectory named `data`.
@@ -64,8 +61,6 @@ This is the easiest method to run the bot with modifications.
restart: on-failure
volumes:
- "./data:/app/data:rw"
environment:
- PYTHONUNBUFFERED=1
```
3. Create a subdirectory named `data`.
@@ -112,4 +107,4 @@ This methods is not very nice to use.
Where `[image]` is either of:
- `qrm2:local-latest` if you are building your own.
- `docker.pkg.github.com/miaowware/qrm2/qrm2:latest` if you want to use the prebuilt image.
- `ghcr.io/miaowware/qrm2:latest` if you want to use the prebuilt image.
+1 -1
View File
@@ -14,5 +14,5 @@ contributing = """Check out the [source on GitHub](https://github.com/miaowware/
All issues and requests related to resources (including maps, band charts, data) should be added \
in [miaowware/qrm-resources](https://github.com/miaowware/qrm-resources)."""
release = "2.7.4"
release = "2.7.5"
bot_server = "https://discord.gg/Ntbg3J4"