Skip to content

Commit

Permalink
fix: pull image before launching migration
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Oct 26, 2023
1 parent 16c865f commit bd6a15a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,11 @@ jobs:
script_stop: false
script: |
cd ${{ matrix.env}}
# Get the latest version (to apply migration next)
make pull
# Apply migrations
make migrate-db
# Start new version
# Launch new version
make up
- name: Check services are up
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ else
${DOCKER_COMPOSE} up -d 2>&1
endif

# pull images from image repository
pull:
${DOCKER_COMPOSE} pull

build:
${DOCKER_COMPOSE} build api 2>&1

Expand Down

0 comments on commit bd6a15a

Please sign in to comment.