2022-10-30 14:44:14 +03:00
|
|
|
name: Build images
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
|
|
|
|
env:
|
|
|
|
BASE_IMAGE_NAME: openvk
|
|
|
|
DB_IMAGE_NAME: mariadb
|
|
|
|
EVENT_IMAGE_NAME: mariadb
|
|
|
|
DB_VERSION: "10.9"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
steps:
|
|
|
|
- name: Set up QEMU
|
2024-11-04 00:10:00 +03:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2022-10-30 14:44:14 +03:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2024-11-04 00:10:00 +03:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2022-10-30 14:44:14 +03:00
|
|
|
|
2024-06-10 00:50:18 +03:00
|
|
|
- name: Change repository string to lowercase
|
|
|
|
id: repositorystring
|
2024-06-10 00:53:35 +03:00
|
|
|
uses: Entepotenz/change-string-case-action-min-dependencies@v1.1.0
|
2024-06-10 00:50:18 +03:00
|
|
|
with:
|
|
|
|
string: ${{ github.repository }}
|
|
|
|
|
2024-11-04 00:10:00 +03:00
|
|
|
# - name: Log into registry
|
|
|
|
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
2022-10-30 14:44:14 +03:00
|
|
|
|
|
|
|
- name: Build base image
|
2024-11-04 00:10:00 +03:00
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
2024-11-04 00:16:47 +03:00
|
|
|
tags: ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.BASE_IMAGE_NAME}}:test
|
2024-11-04 00:10:00 +03:00
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
file: install/automated/docker/openvk.Dockerfile
|
|
|
|
build-args: |
|
|
|
|
GITREPO=${{ steps.repositorystring.outputs.lowercase }}
|
2022-10-30 14:44:14 +03:00
|
|
|
|
|
|
|
- name: Build MariaDB primary image
|
2024-11-04 00:10:00 +03:00
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
2024-11-04 00:16:47 +03:00
|
|
|
tags: ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}}:${{env.DB_VERSION}}-primary
|
2024-11-04 00:10:00 +03:00
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
file: install/automated/docker/mariadb-primary.Dockerfile
|
|
|
|
build-args: |
|
2024-11-04 00:16:47 +03:00
|
|
|
VERSION=${{env.DB_VERSION}}
|
2022-10-30 14:44:14 +03:00
|
|
|
|
|
|
|
- name: Build MariaDB event image
|
2024-11-04 00:10:00 +03:00
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
2024-11-04 00:16:47 +03:00
|
|
|
tags: ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}}:${{env.DB_VERSION}}-eventdb
|
2024-11-04 00:10:00 +03:00
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
file: install/automated/docker/mariadb-eventdb.Dockerfile
|
|
|
|
build-args: |
|
2024-11-04 00:16:47 +03:00
|
|
|
VERSION=${{env.DB_VERSION}}
|