diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index 7647f61..9f36290 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -9,7 +9,7 @@ on: - published jobs: - build-and-push: + build-and-push-app: runs-on: ubuntu-latest steps: - name: Checkout @@ -31,7 +31,7 @@ jobs: type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }} type=ref,event=tag - - name: Build and push + - name: Build and push app image uses: docker/build-push-action@v6 with: context: . @@ -39,3 +39,34 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} 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 }} \ No newline at end of file