Skip to content

fix: different traefik config #25

fix: different traefik config

fix: different traefik config #25

Workflow file for this run

name: Build Docker Images
on:
push:
jobs:
build:
name: Build and Push Docker Images
runs-on: ubuntu-latest
strategy:
matrix:
service: [client, gateway, chat, user, matching]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: amd64
- name: Install Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/aet-devops25/team-devoops/${{ matrix.service }}
tags: |
type=raw,value=latest
flavor: |
latest=true
labels: |
org.opencontainers.image.source=https://github.com/aet-devops25/team-devoops
org.opencontainers.image.url=https://github.com/aet-devops25/team-devoops
org.opencontainers.image.title=team-devoops
org.opencontainers.image.description=
org.opencontainers.image.licenses=MIT
- name: Build and push Docker Image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64
context: ${{ matrix.service == 'client' && './client' || format('./server/{0}', matrix.service) }}
file: ${{ matrix.service == 'client' && './client/Dockerfile' || format('./server/{0}/Dockerfile', matrix.service) }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Trigger Deploy Workflow
if: matrix.service == 'client'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: deploy
client-payload: '{"ref": "${{ github.ref }}"}'