Skip to content

Commit

Permalink
build: Use of poetry 1.7.1 and better docker-compose tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Nov 20, 2023
1 parent 7168ddc commit 72281dc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
# available between steps in the same job.
run: |
pip install --upgrade pip
pip install poetry==1.7.0
pip install poetry==1.7.1
poetry export --without-hashes --without dev --output requirements.txt
- name: Docker build
uses: docker/build-push-action@v4
Expand All @@ -99,7 +99,7 @@ jobs:
# --abort-on-container-exit
# env:
# BE_NAMESPACE: ${{ steps.vars.outputs.BE_NAMESPACE }}
# BE_TAG: ${{ env.GITHUB_REF_SLUG }}
# BE_IMAGE_TAG: ${{ env.GITHUB_REF_SLUG }}
- name: Login to DockerHub
if: steps.vars.outputs.push == 'true'
uses: docker/login-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
- name: Compile requirements.txt
run: |
pip install --upgrade pip
pip install poetry==1.7.0
pip install poetry==1.7.1
poetry export --without-hashes --without dev --output requirements.txt
- name: Build
uses: docker/build-push-action@v4
Expand All @@ -143,7 +143,7 @@ jobs:
# --abort-on-container-exit
# env:
# BE_NAMESPACE: ${{ steps.vars.outputs.BE_NAMESPACE }}
# BE_TAG: ${{ steps.vars.outputs.tag }}
# BE_IMAGE_TAG: ${{ steps.vars.outputs.tag }}
- name: Login to DockerHub
if: steps.vars.outputs.push == 'true'
uses: docker/login-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Compile requirements.txt
run: |
pip install --upgrade pip
pip install poetry==1.7.0
pip install poetry==1.7.1
poetry export --without-hashes --without dev --output requirements.txt
- name: Docker build
uses: docker/build-push-action@v4
Expand All @@ -163,7 +163,7 @@ jobs:
# --abort-on-container-exit
# env:
# BE_NAMESPACE: ${{ steps.vars.outputs.BE_NAMESPACE }}
# BE_TAG: ${{ steps.vars.outputs.tag }}
# BE_IMAGE_TAG: ${{ steps.vars.outputs.tag }}
- name: Login to DockerHub
if: steps.vars.outputs.push == 'true'
uses: docker/login-action@v3
Expand Down
2 changes: 1 addition & 1 deletion build-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pylint-django == 2.5.3
pre-commit == 3.1.1

# Poetry (required to build - see the Dockerfile)
poetry == 1.5.1
poetry == 1.7.1

# Matching main requirements...
Django==3.2.20
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
start_period: 10s

tests:
image: ${BE_NAMESPACE:-xchem}/fragalysis-backend:${BE_TAG:-latest}
image: ${BE_NAMESPACE:-xchem}/fragalysis-backend:${BE_IMAGE_TAG:-latest}
command:
- /bin/bash
- /code/test-entry.sh
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ services:

# The stack backend
backend:
image: ${BE_NAMESPACE:-xchem}/fragalysis-backend:${BE_TAG:-latest}
image: ${BE_NAMESPACE:-xchem}/fragalysis-backend:${BE_IMAGE_TAG:-latest}
container_name: backend
build:
context: .
Expand Down

0 comments on commit 72281dc

Please sign in to comment.