FEAT(app): add Gitea registry configuration

- Add Gitea container registry
- Configure registry credentials
This commit is contained in:
2025-12-12 00:19:37 +09:00
parent c2e2cd2ea9
commit 3971cfd5f4
2 changed files with 7 additions and 9 deletions

View File

@@ -8,8 +8,9 @@ on:
workflow_dispatch:
env:
REGISTRY: gitea0213.kro.kr
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
DOCKER_HOST: tcp://172.17.0.1:2375
jobs:
build-and-push:
@@ -26,17 +27,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Log in to GitHub Container Registry
run: |
echo "${{ secrets.githubregistry }}" | docker login ${{ env.REGISTRY }} -u Mayne0213 --password-stdin
- name: Lowercase repository name
id: lowercase
run: |
echo "repo=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
echo "repo=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]' | sed 's/bluemayne/mayne0213/')" >> $GITHUB_OUTPUT
- name: Extract metadata (tags, labels)
id: meta
@@ -60,7 +58,7 @@ jobs:
docker build \
-t $(echo "$TAGS" | head -n 1) \
-f ./deploy/docker/Dockerfile.prod \
./services/fastapi
./services/nextjs
# Tag all versions
FIRST_TAG=$(echo "$TAGS" | head -n 1)

View File