{"id":48951998,"url":"https://github.com/dockersamples/publish-labspace-action","last_synced_at":"2026-04-17T21:04:24.484Z","repository":{"id":333927441,"uuid":"1130801755","full_name":"dockersamples/publish-labspace-action","owner":"dockersamples","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-21T20:28:47.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-22T08:58:21.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dockersamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-09T03:15:23.000Z","updated_at":"2026-01-21T20:28:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dockersamples/publish-labspace-action","commit_stats":null,"previous_names":["dockersamples/publish-labspace-action"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dockersamples/publish-labspace-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fpublish-labspace-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fpublish-labspace-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fpublish-labspace-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fpublish-labspace-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dockersamples","download_url":"https://codeload.github.com/dockersamples/publish-labspace-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Fpublish-labspace-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31945990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-17T21:04:22.173Z","updated_at":"2026-04-17T21:04:24.472Z","avatar_url":"https://github.com/dockersamples.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Publish Labspace Action\n\nA GitHub Action that packages and deploys your Labspace.\n\n## What it does\n\nThis action:\n\n1. Sets up a known-working version of Docker Compose\n2. Creates a base64-encoded tarball of the content in the repository\n3. Generates a temporary `compose.pipeline.yaml` file with:\n   - A `project_source_tar` config containing the base64-encoded tarball\n   - Mounts the tarball into the `configurator` service and sets the `PROJECT_TAR_PATH` environment variable pointing to the mounted tarball\n4. Publishes the Compose file using `docker compose publish`\n\n## Prerequisites\n\nYour repository must follow the structure provided in the dockersamples/labspace-starter repo:\n\n1. Have a `compose.overrides.yaml` file\n2. Store the Labspace project in the `project` directory\n3. Store the Labspace instructions and `labspace.yaml` in the `labspace` directory\n\n## Configuration\n\n### Inputs\n\n| Input | Description | Required | Default |\n|-------|-------------|----------|---------|\n| `target_repo` | The repo where the Compose file should be published | Yes | - |\n| `target_tag` | The tag for the Compose file should be published | No | `latest` |\n| `labspace_base_version` | The version of the base Labspace Compose file | No | `latest` |\n| `labspace_override_files` | Paths to Labspace-specific Compose override files, comma separated | No | `compose.overrides.yaml` |\n\n## Usage\n\n```yaml\nname: Publish Labspace\n\non:\n  push:\n    branches: [ main ]\n\njobs:\n  publish:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n\n      - name: Log in to DockerHub\n        uses: docker/login-action@v3\n        with:\n          username: ${{ secrets.DOCKERHUB_USERNAME }}\n          password: ${{ secrets.DOCKERHUB_TOKEN }}\n\n      - name: Publish Labspace\n        uses: dockersamples/publish-labspace-action@v1\n        with:\n          target_repo: dockersamples/labspace-demo\n```\n\n## How it works\n\nThe action creates a Docker Compose override file that embeds your project source code as a base64-encoded tarball. This tarball is then available to the `configurator` service at runtime through the `PROJECT_TAR_PATH` environment variable.\n\nThe generated `compose.pipeline.yaml` structure:\n\n```yaml\nconfigs:\n  project_source_tar:\n    content: |\n      \u003cbase64-encoded-tarball\u003e\n\nservices:\n  configurator:\n    configs:\n      - source: project_source_tar\n        target: /etc/labspace-support/content.tar.base64\n    environment:\n      PROJECT_TAR_PATH: /etc/labspace-support/content.tar.base64\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockersamples%2Fpublish-labspace-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockersamples%2Fpublish-labspace-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockersamples%2Fpublish-labspace-action/lists"}