mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 11:54:03 +00:00
feat(infra): add docker image build and deploy pipeline (#13)
This commit is contained in:
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@@ -101,3 +101,36 @@ jobs:
|
||||
run: |
|
||||
terraform -chdir=infra/terraform init -backend=false
|
||||
terraform -chdir=infra/terraform validate
|
||||
|
||||
images:
|
||||
name: Docker / build ${{ matrix.service }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
service:
|
||||
- bot
|
||||
- miniapp
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build container image
|
||||
run: |
|
||||
case "${{ matrix.service }}" in
|
||||
bot)
|
||||
docker build -f apps/bot/Dockerfile -t household-bot:ci .
|
||||
;;
|
||||
miniapp)
|
||||
docker build -f apps/miniapp/Dockerfile -t household-miniapp:ci .
|
||||
;;
|
||||
*)
|
||||
echo "Unknown service: ${{ matrix.service }}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user