Skip to content

Postgres Docker image with "baked-in" data

Actions
Creates a Postgres Docker Image, with data from a Snaplet snapshot, for restoration in Codespaces, development environments
v1.0.0
Latest
Verified creator
Star (12)

Tags

 (1)

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Introduction

This action lets your restore a Snaplet snapshot into a Docker container and push it to your registry for later use. To use it you need to create a workflow with a service container running a database. This container will be populated with data and pushed to a registry.

Inputs

docker-container-name

required Name of the docker container running the database.

docker-image-tag

required A tag to apply and push the image with. Must be fully qualified including registry URL e.g. ghcr.io/snaplet/snaplet-snapshot:latest.

snaplet-database-url

required A connection string to use to restore a snapshot.

snaplet-restore-command

A command to run to restore a snapshot. Default snaplet snapshot restore --latest.

Example usage

Apart from inputs this action expects standard Snaplet environment variables to authenticate the CLI. See example workflow in .github/workflows/snaplet-restore.yml.

Postgres Docker image with "baked-in" data is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Creates a Postgres Docker Image, with data from a Snaplet snapshot, for restoration in Codespaces, development environments
v1.0.0
Latest

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Tags

 (1)

Postgres Docker image with "baked-in" data is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.