Skip to content

Commit

Permalink
Fix image_build_run.sh script (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDudley authored Dec 9, 2024
1 parent 9d81457 commit 40e3907
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .copilot/image_build_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
# Exit early if something goes wrong
set -e

export DJANGO_SETTINGS_MODULE=config.settings.ci

cp .env.ci .env

# Add commands below to run inside the container after all the other buildpacks have been applied
export $(grep -v '^#' .env.ci | xargs)

python manage.py collectstatic --noinput
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Generated by Django 5.1.3 on 2024-12-09 17:28

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("upload_file", "0006_alter_simplehistoryfileupload_options_and_more"),
]

operations = [
migrations.AlterField(
model_name="fileupload",
name="document_type",
field=models.CharField(
choices=[
("actuals", "Actuals"),
("budget", "Budget"),
("previousyear", "Previous Year"),
("projectpercentage", "Project Percentages"),
("forecast", "Forecast"),
("other", "Other"),
],
default="actuals",
max_length=100,
),
),
migrations.AlterField(
model_name="fileupload",
name="file_location",
field=models.CharField(
choices=[
("actuals", "Actuals"),
("budget", "Budget"),
("previousyear", "Previous Year"),
("projectpercentage", "Project Percentages"),
("forecast", "Forecast"),
("other", "Other"),
],
default="S3",
max_length=100,
),
),
migrations.AlterField(
model_name="simplehistoryfileupload",
name="document_type",
field=models.CharField(
choices=[
("actuals", "Actuals"),
("budget", "Budget"),
("previousyear", "Previous Year"),
("projectpercentage", "Project Percentages"),
("forecast", "Forecast"),
("other", "Other"),
],
default="actuals",
max_length=100,
),
),
migrations.AlterField(
model_name="simplehistoryfileupload",
name="file_location",
field=models.CharField(
choices=[
("actuals", "Actuals"),
("budget", "Budget"),
("previousyear", "Previous Year"),
("projectpercentage", "Project Percentages"),
("forecast", "Forecast"),
("other", "Other"),
],
default="S3",
max_length=100,
),
),
]
4 changes: 2 additions & 2 deletions upload_file/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class FileUpload(BaseModel):
(BUDGET, "Budget"),
(PREVIOUSYEAR, "Previous Year"),
(PROJECT_PERCENTAGE, "Project Percentages"),
{FORECAST, "Forecast"},
{OTHER, "Other"},
(FORECAST, "Forecast"),
(OTHER, "Other"),
]

LOCALFILE = "local"
Expand Down

0 comments on commit 40e3907

Please sign in to comment.