Skip to content

Instantly share code, notes, and snippets.

@christherama
Last active March 13, 2023 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christherama/053073cb365a25e7d11b5b71ca0a9420 to your computer and use it in GitHub Desktop.
Save christherama/053073cb365a25e7d11b5b71ca0a9420 to your computer and use it in GitHub Desktop.
Using create-postgres-image
on: [pull_request]
jobs:
create-postgres-image:
permissions:
contents: read
packages: write
uses: christherama/create-postgres-image/.github/workflows/workflow.yaml@v0.0.1
with:
docker-registry: ghcr.io
docker-username: christherama
postgres-version: 13
postgres-username: dino
postgres-password: password
postgres-database: dino
command-image-repository: ghcr.io/christherama/dino-api/django
command-image-tag: postgres-a636687
command-env: >-
DATABASE_HOST=postgres
POSTGRESQL_DATABASE=dino
POSTGRESQL_USERNAME=dino
POSTGRESQL_PASSWORD=password
run: python /usr/app/manage.py migrate
postgres-image-repository: ghcr.io/christherama/test-github-actions/postgres
postgres-image-tag: test
secrets:
docker-password: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment