Compare commits

..

11 commits

5 changed files with 18 additions and 32 deletions

View file

@ -1,6 +1,7 @@
name: Build images name: Build images
on: [push, pull_request] on:
push:
env: env:
BASE_IMAGE_NAME: openvk BASE_IMAGE_NAME: openvk
@ -37,8 +38,6 @@ jobs:
with: with:
images: | images: |
ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.BASE_IMAGE_NAME}} ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.BASE_IMAGE_NAME}}
labels: |
org.opencontainers.image.documentation=https://github.com/OpenVK/openvk/blob/master/install/automated/docker/Readme.md
tags: | tags: |
type=sha type=sha
type=ref,event=branch type=ref,event=branch
@ -46,9 +45,8 @@ jobs:
type=ref,event=tag type=ref,event=tag
type=raw,value=latest,enable={{is_default_branch}} type=raw,value=latest,enable={{is_default_branch}}
- name: Log into registry # - name: Log into registry
if: github.event_name != 'pull_request' # run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build base image - name: Build base image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
@ -57,10 +55,9 @@ jobs:
file: install/automated/docker/openvk.Dockerfile file: install/automated/docker/openvk.Dockerfile
tags: ${{ steps.basemeta.outputs.tags }} tags: ${{ steps.basemeta.outputs.tags }}
labels: ${{ steps.basemeta.outputs.labels }} labels: ${{ steps.basemeta.outputs.labels }}
push: ${{ github.event_name != 'pull_request' }}
build-args: | build-args: |
GITREPO=${{ steps.repositorystring.outputs.lowercase }} GITREPO=${{ steps.repositorystring.outputs.lowercase }}
builddb: builddb:
name: Build DB images name: Build DB images
strategy: strategy:
@ -89,10 +86,6 @@ jobs:
with: with:
images: | images: |
ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}} ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}}
labels: |
org.opencontainers.image.title=OpenVK MariaDB (Primary)
org.opencontainers.image.description=OpenVK's image for MariaDB for primary database.
org.opencontainers.image.documentation=https://github.com/OpenVK/openvk/blob/master/install/automated/docker/Readme.md
tags: | tags: |
type=sha,prefix=${{env.DB_VERSION}}-primary-sha- type=sha,prefix=${{env.DB_VERSION}}-primary-sha-
type=ref,event=branch,prefix=${{env.DB_VERSION}}-primary- type=ref,event=branch,prefix=${{env.DB_VERSION}}-primary-
@ -106,10 +99,6 @@ jobs:
with: with:
images: | images: |
ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}} ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}}
labels: |
org.opencontainers.image.title=OpenVK MariaDB (EventDB)
org.opencontainers.image.description=OpenVK's image for MariaDB for event database.
org.opencontainers.image.documentation=https://github.com/OpenVK/openvk/blob/master/install/automated/docker/Readme.md
tags: | tags: |
type=sha,prefix=${{env.DB_VERSION}}-eventdb-sha- type=sha,prefix=${{env.DB_VERSION}}-eventdb-sha-
type=ref,event=branch,prefix=${{env.DB_VERSION}}-eventdb- type=ref,event=branch,prefix=${{env.DB_VERSION}}-eventdb-
@ -117,14 +106,12 @@ jobs:
type=ref,event=tag,prefix=${{env.DB_VERSION}}-eventdb- type=ref,event=tag,prefix=${{env.DB_VERSION}}-eventdb-
type=raw,value=${{env.DB_VERSION}}-eventdb,enable={{is_default_branch}} type=raw,value=${{env.DB_VERSION}}-eventdb,enable={{is_default_branch}}
- name: Log into registry # - name: Log into registry
if: github.event_name != 'pull_request' # run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build MariaDB primary image - name: Build MariaDB primary image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/${{matrix.platform}} platforms: linux/${{matrix.platform}}
file: install/automated/docker/mariadb-primary.Dockerfile file: install/automated/docker/mariadb-primary.Dockerfile
tags: ${{ steps.db-primarymeta.outputs.tags }} tags: ${{ steps.db-primarymeta.outputs.tags }}
@ -135,7 +122,6 @@ jobs:
- name: Build MariaDB event image - name: Build MariaDB event image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/${{matrix.platform}} platforms: linux/${{matrix.platform}}
file: install/automated/docker/mariadb-eventdb.Dockerfile file: install/automated/docker/mariadb-eventdb.Dockerfile
tags: ${{ steps.db-eventmeta.outputs.tags }} tags: ${{ steps.db-eventmeta.outputs.tags }}

View file

@ -4,7 +4,7 @@ _[Русский](README_RU.md)_
**OpenVK** is an attempt to create a simple CMS that ~~cosplays~~ imitates old VKontakte. Code provided here is not stable yet. **OpenVK** is an attempt to create a simple CMS that ~~cosplays~~ imitates old VKontakte. Code provided here is not stable yet.
VKontakte belongs to VK (formerly Mail.ru Group). VKontakte belongs to Pavel Durov and VK Group.
To be honest, we don't know whether if it even works. However, this version is maintained and we will be happy to accept your bugreports [in our bug tracker](https://github.com/openvk/openvk/projects/1). You should also be able to submit them using [ticketing system](https://ovk.to/support?act=new) (you will need an OpenVK account for this). To be honest, we don't know whether if it even works. However, this version is maintained and we will be happy to accept your bugreports [in our bug tracker](https://github.com/openvk/openvk/projects/1). You should also be able to submit them using [ticketing system](https://ovk.to/support?act=new) (you will need an OpenVK account for this).

View file

@ -4,7 +4,7 @@ _[English](README.md)_
**OpenVK** — это попытка создать простую CMS, которая ~~косплеит~~ имитирует старый ВКонтакте. На данный момент, представленный здесь исходный код проекта пока не является стабильным. **OpenVK** — это попытка создать простую CMS, которая ~~косплеит~~ имитирует старый ВКонтакте. На данный момент, представленный здесь исходный код проекта пока не является стабильным.
ВКонтакте принадлежит VK (в прошлом Mail.ru Group). ВКонтакте принадлежит Павлу Дурову и VK Group.
Честно говоря, мы даже не знаем, работает ли она вообще. Однако, эта версия поддерживается, и мы будем рады принять ваши сообщения об ошибках [в нашем баг-трекере](https://github.com/openvk/openvk/projects/1). Вы также можете отправлять их через [вкладку "Помощь"](https://ovk.to/support?act=new) (для этого вам понадобится учетная запись OpenVK). Честно говоря, мы даже не знаем, работает ли она вообще. Однако, эта версия поддерживается, и мы будем рады принять ваши сообщения об ошибках [в нашем баг-трекере](https://github.com/openvk/openvk/projects/1). Вы также можете отправлять их через [вкладку "Помощь"](https://ovk.to/support?act=new) (для этого вам понадобится учетная запись OpenVK).

View file

@ -385,8 +385,8 @@
<tr> <tr>
<td class="e"> <td class="e">
Vladimir Barinov (veselcraft), Celestora, Konstantin Kichulkin (kosfurler), Vladimir Barinov (veselcraft), Celestora, Konstantin Kichulkin (kosfurler),
Daniel Myslivets, Maxim Leshchenko (maksales / maksalees), n1rwana and Nikita Volkov (sup_ban), Daniel Myslivets, Maxim Leshchenko (maksales / maksalees)
Jillian Österreich (Lumaeris) and n1rwana
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -400,7 +400,7 @@
<tr> <tr>
<td class="e"> <td class="e">
Vladimir Barinov (veselcraft) and Konstantin Kichulkin (kosfurler)<br/> Vladimir Barinov (veselcraft) and Konstantin Kichulkin (kosfurler)<br/>
OpenVK is a free open source software that "cosplays" (or imitates) older versions of a Russian social network called VKontakte. VKontakte belongs to VK (formerly Mail.ru Group). OpenVK is a free open source software that "cosplays" (or imitates) older versions of a Russian social network called VKontakte. VKontakte belongs to Pavel Durov and VK Group.
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -447,7 +447,7 @@
</tr> </tr>
<tr> <tr>
<td class="e">Initial hosting</td> <td class="e">Initial hosting</td>
<td class="v">Jillian Österreich (Lumaeris) and Celestora</td> <td class="v">Lumaeris and Celestora</td>
</tr> </tr>
<tr> <tr>
<td class="e">Initial bug-tracker hosting</td> <td class="e">Initial bug-tracker hosting</td>
@ -459,7 +459,7 @@
</tr> </tr>
<tr> <tr>
<td class="e">Illustrations</td> <td class="e">Illustrations</td>
<td class="v">Ash Defenders, Polina Katunina (ktp0li)</td> <td class="v">Ash Defenders, Polina Katunina (RousPhaul)</td>
</tr> </tr>
<tr> <tr>
<td class="e">Best barmaid</td> <td class="e">Best barmaid</td>
@ -479,9 +479,9 @@
</tr> </tr>
<tr class="e"> <tr class="e">
<td> <td>
kovaltim, Vladimir Lapskiy (0x7d5), Alexander Minkin (WerySkok), Polina Katunina (ktp0li), veth, kovaltim, Vladimir Lapskiy (0x7d5), Alexander Minkin (WerySkok), Polina Katunina (RousPhaul), veth,
Egor Shevchenko, Vadim Korovin (yuni), Ash Defenders, Egor Shevchenko, Vadim Korovin (yuni), Ash Defenders,
Pavel Silaev, Dmitriy Daemon, Jillian Österreich (Lumaeris), Pavel Silaev, Dmitriy Daemon, Lumaeris,
cmed404 and unknown tester, who disappeared shortly after trying to upload post with cat. cmed404 and unknown tester, who disappeared shortly after trying to upload post with cat.
</td> </td>
</tr> </tr>

View file

@ -1,5 +1,5 @@
ARG GITREPO=openvk/openvk ARG GITREPO=openvk/openvk
FROM ghcr.io/${GITREPO}/php:8.2-cli AS builder FROM ghcr.io/${GITREPO}/php:8.2-cli as builder
WORKDIR /opt WORKDIR /opt
@ -27,7 +27,7 @@ ADD composer.* .
RUN composer install RUN composer install
FROM docker.io/node:20 AS nodejs FROM docker.io/node:20 as nodejs
COPY --from=builder /opt/chandler /opt/chandler COPY --from=builder /opt/chandler /opt/chandler