Skip to content

Catch and log errors inside kubernetes connector #602

Catch and log errors inside kubernetes connector

Catch and log errors inside kubernetes connector #602

Workflow file for this run

name: Build Docker Images
on:
push:
branches:
- master
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
env:
AWS_REGISTRY: public.ecr.aws/genialis
AWS_REGION: us-east-1
PLATFORMS: linux/amd64,linux/arm64
jobs:
build:
env:
TAGS:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
image: [fedora-37, ubuntu-22.04, communication]
include:
- image: fedora-37
context: resolwe/toolkit/docker_images/base/
file: resolwe/toolkit/docker_images/base/Dockerfile.fedora-37
repository: resolwe/base
suffix: -fedora
- image: ubuntu-22.04
context: resolwe/toolkit/docker_images/base/
file: resolwe/toolkit/docker_images/base/Dockerfile.ubuntu-22.04
repository: resolwe/base
suffix: ""
- image: communication
context: resolwe/
file: resolwe/flow/docker_images/Dockerfile.communication
repository: resolwe/com
suffix: ""
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Public ECR
uses: docker/login-action@v3
with:
registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Generate tags
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.AWS_REGISTRY }}/${{ matrix.repository }}
flavor: |
latest=false
suffix=${{ matrix.suffix }}
tags: |
type=raw,value=latest${{ matrix.suffix }}
type=pep440,pattern={{version}}
type=raw,value=staging,enable=${{ startsWith(github.ref, 'refs/tags') }}
type=match,group=1,value=${{ github.ref }}stable,pattern=refs/tags/[0-9]+\.[0-9]+\.[0-9]+(stable)$
- name: Build and push tagged image ${{ matrix.image }}
uses: docker/build-push-action@v5
if: tojson(steps.meta.outputs.tags) != '[]'
with:
context: ${{ matrix.context }}
file: ${{ matrix.file }}
tags: ${{ steps.meta.outputs.tags }}
platforms: ${{ env.PLATFORMS }}
push: true