fixed git stuff

This commit is contained in:
c-d-p
2025-04-22 23:14:17 +02:00
parent 02d191853b
commit 2246fb42a4
4 changed files with 28 additions and 42 deletions

View File

@@ -52,8 +52,8 @@ jobs:
file: ./backend/Dockerfile # Explicit path to Dockerfile
push: true # Push the image after building
tags: | # Use SHA for version specific, latest for general
ghcr.io/${{ github.repository_owner }}/MAIA:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/MAIA:latest
ghcr.io/${{ github.repository_owner }}/maia:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/maia:latest
# Pull latest base image updates when building (good for scheduled runs)
pull: true
cache-from: type=gha # Github Actions cache
@@ -75,13 +75,13 @@ jobs:
# Pull the specific image version built in this workflow
# Using the Git SHA ensures we deploy exactly what was just built
docker pull ghcr.io/${{ github.repository_owner }}/MAIA:${{ github.sha }}
docker pull ghcr.io/${{ github.repository_owner }}/maia:${{ github.sha }}
# Also pull latest for other services to keep up to date
docker-compose pull redis db
# Uses sed to update the compose file with the new image tag
sed -i 's|image: ghcr.io/${{ github.repository_owner }}/MAIA:.*|image: ghcr.io/${{ github.repository_owner }}/MAIA:${{ github.sha }}|g' docker-compose.yml
sed -i 's|image: ghcr.io/${{ github.repository_owner }}/maia:.*|image: ghcr.io/${{ github.repository_owner }}/maia:${{ github.sha }}|g' docker-compose.yml
echo "Updated docker-compose.yml image tag"
# Restart the services using the new image(s)

25
.gitignore vendored
View File

@@ -1 +1,24 @@
node_modules
# backend
backend/env
backend/.env
# frontend
interfaces/nativeapp/node_modules
interfaces/nativeapp/.expo/
interfaces/nativeapp/dist/
interfaces/nativeapp/web-build/
interfaces/nativeapp/expo-env.d.ts
interfaces/nativeapp/*.orig.*
interfaces/nativeapp/*.jks
interfaces/nativeapp/*.p8
interfaces/nativeapp/*.p12
interfaces/nativeapp/*.key
interfaces/nativeapp/*.mobileprovision
interfaces/nativeapp/.metro-health-check*
interfaces/nativeapp/npm-debug.*
interfaces/nativeapp/yarn-debug.*
interfaces/nativeapp/yarn-error.*
interfaces/nativeapp/.DS_Store
interfaces/nativeapp/*.pem
interfaces/nativeapp/.env*.local
interfaces/nativeapp/*.tsbuildinfo

1
backend/.gitignore vendored
View File

@@ -1 +0,0 @@
/env

View File

@@ -1,36 +0,0 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
# dependencies
node_modules/
# Expo
.expo/
dist/
web-build/
expo-env.d.ts
# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
# Metro
.metro-health-check*
# debug
npm-debug.*
yarn-debug.*
yarn-error.*
# macOS
.DS_Store
*.pem
# local env files
.env*.local
# typescript
*.tsbuildinfo