{"id":17087233,"url":"https://github.com/nvdaes/packages","last_synced_at":"2026-05-02T09:34:57.793Z","repository":{"id":240558233,"uuid":"802960740","full_name":"nvdaes/packages","owner":"nvdaes","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-01T14:59:29.000Z","size":17,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T18:59:36.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/nvdaes.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":"2024-05-19T18:08:51.000Z","updated_at":"2024-05-19T19:53:13.000Z","dependencies_parsed_at":"2024-05-19T19:25:57.952Z","dependency_job_id":"8b8d163e-c401-4203-a88b-528ceda19fa6","html_url":"https://github.com/nvdaes/packages","commit_stats":null,"previous_names":["nvdaes/packages"],"tags_count":0,"template":false,"template_full_name":"skills/publish-packages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvdaes%2Fpackages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvdaes%2Fpackages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvdaes%2Fpackages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvdaes%2Fpackages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nvdaes","download_url":"https://codeload.github.com/nvdaes/packages/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245119574,"owners_count":20563763,"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":[],"created_at":"2024-10-14T13:31:53.379Z","updated_at":"2026-05-02T09:34:57.753Z","avatar_url":"https://github.com/nvdaes.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cheader\u003e\n\n\u003c!--\n  \u003c\u003c\u003c Author notes: Course header \u003e\u003e\u003e\n  Include a 1280×640 image, course title in sentence case, and a concise description in emphasis.\n  In your repository settings: enable template repository, add your 1280×640 social image, auto delete head branches.\n  Add your open source license, GitHub uses the MIT license.\n--\u003e\n\n# Publish to GitHub Packages\n\n_Use GitHub Actions to publish your project to a Docker image._\n\n\u003c/header\u003e\n\n\u003c!--\n  \u003c\u003c\u003c Author notes: Step 1 \u003e\u003e\u003e\n  Choose 3-5 steps for your course.\n  The first step is always the hardest, so pick something easy!\n  Link to docs.github.com for further explanations.\n  Encourage users to open new tabs for steps!\n--\u003e\n\n## Step 1: Create the workflow file\n\n_Welcome to \"Publish packages\"! :wave:_\n\nFirst, take a moment to examine the image below. It shows the relationship between _continuous integration_, _continuous delivery_ and _continuous deployment_.\n\n![](https://i.imgur.com/xZCkjmU.png)\n\n**Continuous integration** (CI) is a practice where developers integrate tested code into a shared branch several times per day. **Continuous delivery** (CD) is the next phase of **continuous integration** (CI) where we also make sure to package the code in a _release_ and store it somewhere - preferably, in an artifact repository. Lastly, **Continuous deployment** (CD) takes **continuous delivery** (CD) to the next level by directly deploying our releases to the world.\n\n[**Docker**](https://www.docker.com/why-docker) is an engine that allows you to run containers.\nContainers are packages of software that can run reliably in different environments. Containers include everything needed to run the application. Containers are lightweight in comparison to virtual machines. A **Dockerfile** is a text document that contains all the commands and instructions necessary to build a Docker Image. A **Docker image** is an executable package comprised of code, dependencies, libraries, a runtime, environment variables, and configuration files. A **Docker container** is a runtime instance of a Docker Image.\n\nWe'll start by creating the workflow file to publish a Docker image to GitHub Packages.\n\n### :keyboard: Activity: Create the workflow file\n\n1. Open a new browser tab, and work on the steps in your second tab while you read the instructions in this tab.\n1. Navigate to the **Code** tab.\n1. From the **main** branch dropdown, click on the **cd** branch.\n1. Navigate to the `.github/workflows/` folder, then select **Add file** and click on **Create new file**.\n1. In the **Name your file...** field, enter `publish.yml`.\n1. Add the following to the `publish.yml` file:\n   ```yml\n   name: Publish to Docker\n   on:\n     push:\n       branches:\n         - main\n   permissions:\n     packages: write\n     contents: read\n   jobs:\n     publish:\n       runs-on: ubuntu-latest\n       steps:\n         - name: Checkout\n           uses: actions/checkout@v4\n         # Add your test steps here if needed...\n         - name: Docker meta\n           id: meta\n           uses: docker/metadata-action@v5\n           with:\n             images: ghcr.io/YOURNAME/publish-packages/game\n             tags: type=sha\n         - name: Login to GHCR\n           uses: docker/login-action@v3\n           with:\n             registry: ghcr.io\n             username: ${{ github.repository_owner }}\n             password: ${{ secrets.GITHUB_TOKEN }}\n         - name: Build container\n           uses: docker/build-push-action@v5\n           with:\n             context: .\n             push: true\n             tags: ${{ steps.meta.outputs.tags }}\n   ```\n1. Replace `YOURNAME` with your username.\n1. Make sure that the image name is unique.\n1. Commit your changes.\n1. (optional) Create a pull request to view all the changes you'll make throughout this course. Click the **Pull Requests** tab, click **New pull request**, set `base: main` and `compare:cd`.\n1. Wait about 20 seconds then refresh this page (the one you're following instructions from). [GitHub Actions](https://docs.github.com/en/actions) will automatically update to the next step.\n\n\u003cfooter\u003e\n\n\u003c!--\n  \u003c\u003c\u003c Author notes: Footer \u003e\u003e\u003e\n  Add a link to get support, GitHub status page, code of conduct, license link.\n--\u003e\n\n---\n\nGet help: [Post in our discussion board](https://github.com/orgs/skills/discussions/categories/publish-packages) \u0026bull; [Review the GitHub status page](https://www.githubstatus.com/)\n\n\u0026copy; 2023 GitHub \u0026bull; [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md) \u0026bull; [MIT License](https://gh.io/mit)\n\n\u003c/footer\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvdaes%2Fpackages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvdaes%2Fpackages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvdaes%2Fpackages/lists"}