Last active
March 13, 2023 11:19
-
-
Save christherama/053073cb365a25e7d11b5b71ca0a9420 to your computer and use it in GitHub Desktop.
Using create-postgres-image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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