From 99356c957e4f4a28dd921d1773ac6b4cad536906 Mon Sep 17 00:00:00 2001 From: Muhammad Umar Khan Date: Thu, 24 Oct 2024 13:47:47 +0500 Subject: [PATCH] chore: fetch credentials dev config from devstack --- .github/workflows/push-credentials-image.yaml | 5 +++++ dockerfiles/credentials.Dockerfile | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/push-credentials-image.yaml b/.github/workflows/push-credentials-image.yaml index f565249..9a981d5 100644 --- a/.github/workflows/push-credentials-image.yaml +++ b/.github/workflows/push-credentials-image.yaml @@ -6,6 +6,11 @@ on: branch: description: "Target branch from which the source dockerfile from image will be sourced" +# Added for testing purposes. Will remove once the PR is finalised + pull_request: + branches: + - '**' + schedule: - cron: "0 4 * * 1-5" # UTC Time diff --git a/dockerfiles/credentials.Dockerfile b/dockerfiles/credentials.Dockerfile index 71ecafb..8a0243b 100644 --- a/dockerfiles/credentials.Dockerfile +++ b/dockerfiles/credentials.Dockerfile @@ -71,6 +71,8 @@ RUN mkdir -p /edx/var/log # This line is after the python requirements so that changes to the code will not # bust the image cache RUN curl -L https://github.com/openedx/credentials/archive/refs/heads/master.tar.gz | tar -xz --strip-components=1 +# Download python configuration file from devstack +RUN curl -L -o credentials/settings/devstack.py https://raw.githubusercontent.com/edx/devstack/master/py_configuration_files/credentials.py # Fetch the translations into the image once the Makefile's in place RUN make pull_translations