From bf8f8074e6ac72f726faaab9d005b1ec1c85b194 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 8 Jul 2024 10:27:52 +0100 Subject: [PATCH 1/3] update repo --- .github/workflows/build.yml | 2 +- .github/workflows/tests.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b142a6f55..0893ae54a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,4 +30,4 @@ jobs: with: context: . push: true - tags: docker.pkg.github.com/edwardchalstrey1/seshat/tests-image:latest \ No newline at end of file + tags: docker.pkg.github.com/Seshat-Global-History-Databank/seshat/tests-image:latest \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 13b2c5912..02b0c19df 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,8 +20,8 @@ jobs: password: ${{ secrets.GH_TOKEN }} - name: Pull and run Docker image run: | - docker pull docker.pkg.github.com/edwardchalstrey1/seshat/tests-image:latest - docker run -d -p 5432:5432 -v ${{ github.workspace }}:/seshat -e DJANGO_SETTINGS_MODULE=seshat.settings.local -e POSTGRES_PASSWORD=postgres -e PGDATA=/var/lib/postgresql/data/db-files/ -e GITHUB_ACTIONS='true' --name seshat_testing docker.pkg.github.com/edwardchalstrey1/seshat/tests-image:latest + docker pull docker.pkg.github.com/Seshat-Global-History-Databank/seshat/tests-image:latest + docker run -d -p 5432:5432 -v ${{ github.workspace }}:/seshat -e DJANGO_SETTINGS_MODULE=seshat.settings.local -e POSTGRES_PASSWORD=postgres -e PGDATA=/var/lib/postgresql/data/db-files/ -e GITHUB_ACTIONS='true' --name seshat_testing docker.pkg.github.com/Seshat-Global-History-Databank/seshat/tests-image:latest - name: Sleep, then check PostgreSQL connectivity run: | sleep 10 From 10e737d719cd92d6c40bc2fd5cd4b19038f87670 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 8 Jul 2024 10:53:40 +0100 Subject: [PATCH 2/3] rebuild if the build yml is changed --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0893ae54a..a204663d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,11 +7,13 @@ on: paths: - 'Dockerfile' - 'requirements.txt' + - '.github/workflows/build.yml' pull_request: branches: [dev] paths: - 'Dockerfile' - 'requirements.txt' + - '.github/workflows/build.yml' jobs: build: From 2d582cf4054a4b2c09d24d3afc827cbda62ca849 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 8 Jul 2024 10:55:07 +0100 Subject: [PATCH 3/3] org name to lower case --- .github/workflows/build.yml | 2 +- .github/workflows/tests.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a204663d2..b9a859f64 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,4 +32,4 @@ jobs: with: context: . push: true - tags: docker.pkg.github.com/Seshat-Global-History-Databank/seshat/tests-image:latest \ No newline at end of file + tags: docker.pkg.github.com/seshat-global-history-databank/seshat/tests-image:latest \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 02b0c19df..b74fabf63 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,8 +20,8 @@ jobs: password: ${{ secrets.GH_TOKEN }} - name: Pull and run Docker image run: | - docker pull docker.pkg.github.com/Seshat-Global-History-Databank/seshat/tests-image:latest - docker run -d -p 5432:5432 -v ${{ github.workspace }}:/seshat -e DJANGO_SETTINGS_MODULE=seshat.settings.local -e POSTGRES_PASSWORD=postgres -e PGDATA=/var/lib/postgresql/data/db-files/ -e GITHUB_ACTIONS='true' --name seshat_testing docker.pkg.github.com/Seshat-Global-History-Databank/seshat/tests-image:latest + docker pull docker.pkg.github.com/seshat-global-history-databank/seshat/tests-image:latest + docker run -d -p 5432:5432 -v ${{ github.workspace }}:/seshat -e DJANGO_SETTINGS_MODULE=seshat.settings.local -e POSTGRES_PASSWORD=postgres -e PGDATA=/var/lib/postgresql/data/db-files/ -e GITHUB_ACTIONS='true' --name seshat_testing docker.pkg.github.com/seshat-global-history-databank/seshat/tests-image:latest - name: Sleep, then check PostgreSQL connectivity run: | sleep 10