Skip to content

feat: up postgres version (#8) #2

feat: up postgres version (#8)

feat: up postgres version (#8) #2

Workflow file for this run

name: Build and Push Docker Images
on:
push:
branches:
- master
tags:
- 'v*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build ${{ matrix.image }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include:
- image: kg-appserver
context: appserver
- image: kg-webserver
context: client
build-args: |
ANGULAR_CONFIG=production
YARN_INSTALL_OPTS=--frozen-lockfile
- image: kg-statistical-enrichment
context: statistical-enrichment
- image: kg-cache-invalidator
context: cache-invalidator
- image: filebeat
context: filebeat
- image: elasticsearch
context: elasticsearch
- image: logstash
context: logstash
- image: metricbeat
context: metricbeat
- image: arangodb
context: arangodb
- image: graph-db-migrator
context: graph-db/migrator
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/${{ matrix.image }}
tags: |
type=sha,prefix=,format=short
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: ${{ matrix.build-args }}
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,mode=max,scope=${{ matrix.image }}