Skip to content

chore(deps): bump idna from 3.13 to 3.15 in /examples (#101) #30

chore(deps): bump idna from 3.13 to 3.15 in /examples (#101)

chore(deps): bump idna from 3.13 to 3.15 in /examples (#101) #30

name: build and publish images
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image_name: gateway
context: src/server
dockerfile: src/server/Dockerfile.gateway
- image_name: server
context: src/server
dockerfile: src/server/Dockerfile
- image_name: client
context: examples
dockerfile: examples/autoresearch/Dockerfile
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
build-args: |
VERSION=${{ github.sha }}
push: true
tags: |
ghcr.io/gke-labs/open-rl/${{ matrix.image_name }}:latest
ghcr.io/gke-labs/open-rl/${{ matrix.image_name }}:${{ github.sha }}