Fix portal deployment image and publish workflow

This commit is contained in:
defiQUG
2026-08-28 20:04:40 -07:00
parent c3b47e88b4
commit d5a9330c79
2 changed files with 55 additions and 2 deletions
+54
View File
@@ -0,0 +1,54 @@
name: Portal Publish
on:
push:
branches: [main, develop]
paths:
- 'portal/**'
- '.github/workflows/portal-publish.yml'
- 'gitops/apps/portal/manifests/deployment.yaml'
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
publish:
name: Build and Publish Portal Image
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./portal
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/sankofa/portal
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=sha,prefix=
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./portal
file: ./portal/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
+1 -2
View File
@@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: portal
image: yourregistry/portal:latest
image: ghcr.io/sankofa/portal:latest
ports:
- containerPort: 3000
name: http
@@ -110,4 +110,3 @@ spec:
name: portal
port:
number: 80