Files
gyeongcheol1 0a92098e78
Some checks failed
BKON API Server Deploy / build-and-push (push) Failing after 2s
yml update
2025-09-05 19:20:41 +09:00

43 lines
1.0 KiB
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
container:
image: docker:24
options: -v /var/run/docker.sock:/var/run/docker.sock
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