Files
gitactionTest/.gitea/workflows/ci.yml
gyeongcheol1 64a9f751f4
Some checks failed
BKON API Server Deploy / build-and-push (push) Failing after 3s
Refactor CI
2025-09-05 19:09:12 +09:00

40 lines
972 B
YAML

name: BKON API Server Deploy
on:
push:
branches: ['main']
env:
REGISTRY: ${{ secrets.REGISTRY }} # 예: git.mnco.dev
IMAGE: ${{ secrets.IMAGE }} # 예: mnco/regecy-wallet-backend
TAG: Test
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create .env.dockerize
run: |
umask 077
cat > .env.dockerize <<EOF
USER=${{ secrets.REG_USER }}
TOKEN=${{ secrets.REG_TOKEN }}
DOCKER_HOST=tcp://dind:2375
DOCKER_BUILDKIT=1
REGISTRY=${{ secrets.REGISTRY }}
IMAGE=${{ secrets.IMAGE }}
BLOB_CHUNK=52428800
BLOB_MAX=104857600
TAG=Test
EOF
- name: Build & Push via dockerize.yml
run: |
sh bin/updateCommitSha.sh
docker compose -f dockerize.yml up
- name: Cleanup env
if: always()
run: rm -f .env.dockerize