Update CI workflow to deploy
Some checks failed
BKON API Server Deploy / build-and-push (push) Failing after 48s
Some checks failed
BKON API Server Deploy / build-and-push (push) Failing after 48s
This commit is contained in:
@@ -1,12 +1,39 @@
|
||||
name: Test Runner
|
||||
name: BKON API Server Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
branches: ['main']
|
||||
|
||||
env:
|
||||
REGISTRY: ${{ secrets.REGISTRY }} # 예: git.mnco.dev
|
||||
IMAGE: ${{ secrets.IMAGE }} # 예: mnco/regecy-wallet-backend
|
||||
TAG: Test
|
||||
|
||||
jobs:
|
||||
check-runner:
|
||||
runs-on: [ubuntu-latest] # 러너 라벨과 일치해야 함
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Print hello
|
||||
run: echo "✅ Runner is working!"
|
||||
- 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
|
||||
Reference in New Issue
Block a user