Skip to content

Commit

Permalink
Enforcing lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewesterling committed Jul 12, 2024
1 parent 888315c commit ce8ac31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
tags: docker.pkg.github.com/${ env.REPO }/seshat/tests-image:latest
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce8ac31

Please sign in to comment.