diff --git a/.github/workflows/push-program-intent-engagement-image.yaml b/.github/workflows/push-program-intent-engagement-image.yaml index 7ecd972..5294be7 100644 --- a/.github/workflows/push-program-intent-engagement-image.yaml +++ b/.github/workflows/push-program-intent-engagement-image.yaml @@ -9,6 +9,11 @@ on: schedule: - cron: "0 4 * * 1-5" # UTC Time +# Added for testing purposes. Will remove once the PR is finalised + pull_request: + branches: + - '**' + jobs: build-and-push-image: runs-on: ubuntu-latest diff --git a/dockerfiles/program-intent-engagement.Dockerfile b/dockerfiles/program-intent-engagement.Dockerfile index 692d7e7..25787d8 100644 --- a/dockerfiles/program-intent-engagement.Dockerfile +++ b/dockerfiles/program-intent-engagement.Dockerfile @@ -75,9 +75,6 @@ ENV DJANGO_SETTINGS_MODULE program_intent_engagement.settings.production EXPOSE 18781 RUN useradd -m --shell /bin/false app -# Clone the repository -RUN curl -L https://github.com/edx/program-intent-engagement/archive/refs/heads/main.tar.gz | tar -xz --strip-components=1 - WORKDIR /edx/app/program-intent-engagement # Create required directories for requirements @@ -90,6 +87,8 @@ RUN virtualenv -p python${PYTHON_VERSION} --always-copy ${INTENT_MANAGEMENT_VENV RUN curl -L -o requirements/production.txt https://raw.githubusercontent.com/edx/program-intent-engagement/main/requirements/production.txt RUN pip install -r requirements/production.txt +# Clone the repository +RUN curl -L https://github.com/edx/program-intent-engagement/archive/refs/heads/main.tar.gz | tar -xz --strip-components=1 RUN mkdir -p /edx/var/log