Skip to content

Build docker images using github actions #3

Build docker images using github actions

Build docker images using github actions #3

Workflow file for this run

name: Panel
on:
workflow_dispatch:
push:
paths:
- ".github/**"
- "panel/**"
- "pnpm-lock.yml"
pull_request:
paths:
- ".github/**"
- "panel/**"
- "pnpm-lock.yml"
jobs:
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/prod'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker image
uses: docker/build-push-action@v6
with:
context: "."
file: "panel/Dockerfile"
push: true
tags: modfest/platform_api:latest