mirror of
https://github.com/openvk/openvk
synced 2024-11-15 03:31:18 +03:00
ci(actions): move DB images building to a different job
This commit is contained in:
parent
981ac4e081
commit
26fdc03e62
1 changed files with 37 additions and 12 deletions
49
.github/workflows/build.yaml
vendored
49
.github/workflows/build.yaml
vendored
|
@ -10,14 +10,14 @@ env:
|
||||||
DB_VERSION: "10.9"
|
DB_VERSION: "10.9"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
buildbase:
|
||||||
|
name: Build base images
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [amd64, arm64]
|
platform: [amd64, arm64]
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
@ -45,6 +45,41 @@ 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
|
||||||
|
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
|
- name: Build base image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
platforms: linux/${{matrix.platform}}
|
||||||
|
file: install/automated/docker/openvk.Dockerfile
|
||||||
|
tags: ${{ steps.basemeta.outputs.tags }}
|
||||||
|
labels: ${{ steps.basemeta.outputs.labels }}
|
||||||
|
build-args: |
|
||||||
|
GITREPO=${{ steps.repositorystring.outputs.lowercase }}
|
||||||
|
|
||||||
|
builddb:
|
||||||
|
name: Build DB images
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [amd64, arm64]
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Change repository string to lowercase
|
||||||
|
id: repositorystring
|
||||||
|
uses: Entepotenz/change-string-case-action-min-dependencies@v1.1.0
|
||||||
|
with:
|
||||||
|
string: ${{ github.repository }}
|
||||||
|
|
||||||
- name: MariaDB primary meta
|
- name: MariaDB primary meta
|
||||||
id: db-primarymeta
|
id: db-primarymeta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
|
@ -74,16 +109,6 @@ jobs:
|
||||||
# - name: Log into registry
|
# - name: Log into registry
|
||||||
# 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
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
platforms: linux/${{matrix.platform}}
|
|
||||||
file: install/automated/docker/openvk.Dockerfile
|
|
||||||
tags: ${{ steps.basemeta.outputs.tags }}
|
|
||||||
labels: ${{ steps.basemeta.outputs.labels }}
|
|
||||||
build-args: |
|
|
||||||
GITREPO=${{ steps.repositorystring.outputs.lowercase }}
|
|
||||||
|
|
||||||
- name: Build MariaDB primary image
|
- name: Build MariaDB primary image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue