feat: deploy dev image

This commit is contained in:
Fu Zi Xiang 2023-12-20 10:40:35 -08:00
parent 97aead5282
commit 00197e971f
No known key found for this signature in database
GPG Key ID: 7AE0884D237CEE16
2 changed files with 12 additions and 6 deletions

View File

@ -43,10 +43,16 @@ jobs:
- name: Run Docker-Compose
run: |
docker compose up -d
# docker compose up -d
docker compose build appflowy_cloud
- name: Run tests
# - name: Run tests
# run: |
# cargo install sqlx-cli --version=${{ env.SQLX_VERSION }} --features ${{ env.SQLX_FEATURES }} --no-default-features --locked
# RUST_LOG=debug cargo test
- name: Release image to docker hub
run: |
cargo install sqlx-cli --version=${{ env.SQLX_VERSION }} --features ${{ env.SQLX_FEATURES }} --no-default-features --locked
RUST_LOG=debug cargo test
docker tag appflowy-cloud-appflowy_cloud appflowyinc/appflowy_cloud:dev
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login --username appflowyinc --password-stdin
docker push appflowyinc/appflowy_cloud:dev

View File

@ -119,7 +119,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: appflowyinc/appflowy_cloud:${BACKEND_VERSION:-latest}
#image: appflowyinc/appflowy_cloud:${BACKEND_VERSION:-latest}
depends_on:
- redis
- postgres