Skip to content

Try adding Github secrets #5

Try adding Github secrets

Try adding Github secrets #5

Workflow file for this run

name: Build and Publish Docker Image
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/${{ github.actor }}/qna-admin:latest
secrets: |
"OPENAI_KEY=${{ secrets.OPENAI_KEY }}"
"DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}"
"DISCORD_CLIENT_PUBLIC_KEY=${{ secrets.DISCORD_CLIENT_PUBLIC_KEY }}"
"DISCORD_GUILD_ID=${{ secrets.DISCORD_GUILD_ID }}"
"DISCORD_MODERATION_ACCESS_ROLES=${{ secrets.DISCORD_MODERATION_ACCESS_ROLES }}"
"REVIEW_CHANNEL_ID=${{ secrets.REVIEW_CHANNEL_ID }}"
"DISCORD_CLIENT_ID=${{ secrets.DISCORD_CLIENT_ID }}"
"EDGEDB_SECRET_KEY=${{ secrets.EDGEDB_SECRET_KEY }}"
"EDGEDB_INSTANCE=${{ secrets.EDGEDB_INSTANCE }}"