Skip to content

chore: update logger options use single line #23

chore: update logger options use single line

chore: update logger options use single line #23

Workflow file for this run

name: Build
on:
push:
branches:
- master
- develop
tags:
- "v*"
pull_request:
branches:
- master
- develop
permissions:
contents: write
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
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 Docker Hub
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name == 'push' }}
platforms: linux/amd64,linux/arm64
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
tags: |
${{ secrets.DOCKER_USERNAME }}/openai-relay:${{ github.ref_name }}
${{ secrets.DOCKER_USERNAME }}/openai-relay:latest
release-charts:
runs-on: ubuntu-latest
permissions:
contents: write
if: startsWith(github.ref, 'refs/tags/')
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Update chart version and appVersion
run: |
VERSION=${GITHUB_REF#refs/tags/}
sed -i "s/appVersion: .*/appVersion: \"${VERSION}\"/" charts/openai-relay/Chart.yaml
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"