Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image_build_run.sh script #573

Merged
merged 13 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading