{"id":27172094,"url":"https://github.com/pacificcommunity/ofp-sam-docker-images","last_synced_at":"2025-04-09T09:35:12.438Z","repository":{"id":276222614,"uuid":"928194085","full_name":"PacificCommunity/ofp-sam-docker-images","owner":"PacificCommunity","description":"This repository contains publicly available Docker images for various projects","archived":false,"fork":false,"pushed_at":"2025-03-26T22:05:02.000Z","size":4130,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T23:20:33.175Z","etag":null,"topics":["docker","image","ofp","sam"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PacificCommunity.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}},"created_at":"2025-02-06T08:16:06.000Z","updated_at":"2025-03-26T22:05:08.000Z","dependencies_parsed_at":"2025-03-12T06:33:41.312Z","dependency_job_id":null,"html_url":"https://github.com/PacificCommunity/ofp-sam-docker-images","commit_stats":null,"previous_names":["pacificcommunity/ofp-sam-docker-images"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacificCommunity%2Fofp-sam-docker-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacificCommunity%2Fofp-sam-docker-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacificCommunity%2Fofp-sam-docker-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacificCommunity%2Fofp-sam-docker-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PacificCommunity","download_url":"https://codeload.github.com/PacificCommunity/ofp-sam-docker-images/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248013209,"owners_count":21033322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","image","ofp","sam"],"created_at":"2025-04-09T09:35:11.849Z","updated_at":"2025-04-09T09:35:12.426Z","avatar_url":"https://github.com/PacificCommunity.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Workflow Status](https://github.com/PacificCommunity/ofp-sam-docker-images/actions/workflows/build-and-push.yml/badge.svg)\n\nFor reproducibility, each top-level directory contains a Dockerfile and associated files to build a Docker image. The GitHub Actions workflow automatically builds and pushes these images to GitHub Container Registry (GHCR) under the `PacificCommunity` organisation.\n\nThe pushed images are available at:\n\nhttps://github.com/orgs/PacificCommunity/packages\n\n# Overview\n\nThis repository includes a GitHub Actions workflow that:\n\n1. Detects changed top-level directories (e.g., `skj-2025/`, `yft-2025/`).\n2. Builds Docker images for each changed directory.\n3. Pushes them to GitHub Container Registry (GHCR) under the `pacificcommunity` organisation.\n4. Either uses a user-specified version (provided via `workflow_dispatch`) or automatically increments the minor version if previous tags exist.\n\n# Key Features\n\n- **Auto-incrementing version**:\n  - Scans GHCR for the highest existing tag (e.g., `v1.4` or `1.4`) and increments to `1.5`.\n  - Defaults to `1.0` if no valid version is found or the package does not exist.\n\n- **User-specified version**:\n  - If you manually dispatch the workflow and enter a version (e.g., `2.3`), that overrides auto-increment.\n\n- **Top-level directory detection**:\n  - Each changed directory is treated as a separate container image.\n\n# Adding or Updating Docker Images\n\n## Adding a New Docker Image for a New Project\n\n1. Create a **new folder** at the top level of this repository, for example `tuna-2025/`.\n2. Put a **Dockerfile** inside that folder.\n3. Commit and push your changes (this will trigger the GitHub Actions workflow). \n   - The GitHub Actions workflow will detect the new directory, build a new Docker image, and push it to GHCR.\n4. Make the package public (if non-sensitive and intended for public use) so that others can access it without authentication by going to https://github.com/orgs/PacificCommunity/packages and clicking on the package name. \n   - Click on the “Settings” tab and change the visibility to “Public”.\n\n## Updating an Existing Docker Image\n\n1. **Modify** the Dockerfile in one of the existing folders (e.g. `skj-2025/Dockerfile`).\n2. Commit and push your changes  (this will trigger the GitHub Actions workflow).   \n   - The workflow detects changes in that directory’s Dockerfile and automatically rebuilds and pushes an updated image to GHCR.\n\n# Automatic GitHub Actions Trigger\n\n- **Workflow trigger**:  \n  Whenever you push changes (especially Dockerfile changes), GitHub Actions automatically runs the build-and-push workflow. If anything goes wrong in the build or push process, the workflow will **fail**, and you can check the logs in the “Actions” tab for details.\n\n- **Failing workflow**:  \n  If the Docker build fails, version detection fails, or pushing to GHCR fails, you will see a **red “X”** in the GitHub Actions run. View the logs to diagnose and fix the issue before retrying.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacificcommunity%2Fofp-sam-docker-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacificcommunity%2Fofp-sam-docker-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacificcommunity%2Fofp-sam-docker-images/lists"}