diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a8a51cab3..74025b0dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,9 +27,12 @@ jobs: registry: docker.pkg.github.com username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: downcase REPO + run: | + echo "REPO=${GITHUB_REPOSITORY@L}" >> ${GITHUB_ENV} - name: Build and push Docker image uses: docker/build-push-action@v6 with: context: . push: true - tags: docker.pkg.github.com/${{ github.repository }}/seshat/tests-image:latest \ No newline at end of file + tags: docker.pkg.github.com/${ env.REPO }/seshat/tests-image:latest \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 40ac86c82..896cc61a0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,10 +18,13 @@ jobs: registry: docker.pkg.github.com username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: downcase REPO + run: | + echo "REPO=${GITHUB_REPOSITORY@L}" >> ${GITHUB_ENV} - name: Pull and run Docker image run: | - docker pull docker.pkg.github.com/${{ github.repository }}/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/${{ github.repository }}/seshat/tests-image:latest + docker pull docker.pkg.github.com/${ env.REPO }/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/${ env.REPO }/seshat/tests-image:latest - name: Sleep, then check PostgreSQL connectivity run: | sleep 10