Skip to content

v2.8.0

v2.8.0 #24

Workflow file for this run

name: release
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract frontend metadata for Docker
id: meta-frontend
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-frontend
tags: |
type=semver,pattern={{version}}
type=sha
flavor: |
latest=true
- name: Extract backend metadata for Docker
id: meta-backend
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-backend
tags: |
type=semver,pattern={{version}}
type=sha
flavor: |
latest=true
- name: Extract bot metadata for Docker
id: meta-bot
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-bot
tags: |
type=semver,pattern={{version}}
type=sha
flavor: |
latest=true
- name: Build and push frontend
uses: docker/build-push-action@v5
with:
context: .
file: ./frontend/Dockerfile
push: true
tags: ${{ steps.meta-frontend.outputs.tags }}
labels: ${{ steps.meta-frontend.outputs.labels }}
- name: Build and push backend
uses: docker/build-push-action@v5
with:
context: .
file: ./backend/Dockerfile
push: true
tags: ${{ steps.meta-backend.outputs.tags }}
labels: ${{ steps.meta-backend.outputs.labels }}
- name: Build and push bot
uses: docker/build-push-action@v5
with:
context: .
file: ./bot/Dockerfile
push: true
tags: ${{ steps.meta-bot.outputs.tags }}
labels: ${{ steps.meta-bot.outputs.labels }}