Skip to content

feat: Update authOptions to use hardcoded domain for development envi… #15

feat: Update authOptions to use hardcoded domain for development envi…

feat: Update authOptions to use hardcoded domain for development envi… #15

Workflow file for this run

name: Deploy to GitHub Container Registry
on:
push:
branches: ["main"]
workflow_dispatch:
env:
REGISTRY: ghcr.io
CLIENT_IMAGE_NAME: ${{ github.repository }}-client
SERVER_IMAGE_NAME: ${{ github.repository }}-server
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Client Docker image
id: meta-client
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.CLIENT_IMAGE_NAME }}
- name: Build and push Client Docker image
uses: docker/build-push-action@v4
with:
context: ./client
file: ./client/Dockerfile
push: true
tags: ${{ steps.meta-client.outputs.tags }}
labels: ${{ steps.meta-client.outputs.labels }}
- name: Extract metadata (tags, labels) for Server Docker image
id: meta-server
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.SERVER_IMAGE_NAME }}
- name: Build and push Server Docker image
uses: docker/build-push-action@v4
with:
context: ./server
file: ./server/Dockerfile
push: true
tags: ${{ steps.meta-server.outputs.tags }}
labels: ${{ steps.meta-server.outputs.labels }}