Some checks failed
BKON API Server Deploy / build-and-push (push) Failing after 48s
39 lines
959 B
YAML
39 lines
959 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: |
|
|
bin/updateCommitSha.sh;docker compose -f dockerize.yml up
|
|
|
|
- name: Cleanup env
|
|
if: always()
|
|
run: rm -f .env.dockerize |