add db build and push
Build and Push Containers / build-and-push-app (push) Successful in 16s
Build and Push Containers / build-and-push-db (push) Successful in 10s

This commit is contained in:
2026-08-27 10:00:21 -04:00
parent fe55be0c35
commit beaca4fe97
+33 -2
View File
@@ -9,7 +9,7 @@ on:
- published - published
jobs: jobs:
build-and-push: build-and-push-app:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@@ -31,7 +31,7 @@ jobs:
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }} type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=tag type=ref,event=tag
- name: Build and push - name: Build and push app image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: . context: .
@@ -39,3 +39,34 @@ jobs:
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-and-push-db:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: gitea.reeseapps.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: gitea.reeseapps.com/Experimental/brain-of-reese-db
tags: |
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=tag
- name: Build and push db image
uses: docker/build-push-action@v6
with:
context: ./db
file: ./db/Containerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}