{"id":25409118,"url":"https://github.com/byloth/docker-setup-action","last_synced_at":"2026-05-08T13:09:42.503Z","repository":{"id":65157509,"uuid":"483813666","full_name":"Byloth/docker-setup-action","owner":"Byloth","description":"🐋 An action to easily set up a Docker build environment with some useful environment variables.","archived":false,"fork":false,"pushed_at":"2023-09-13T12:54:48.000Z","size":570,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T16:45:34.868Z","etag":null,"topics":["docker","environment-variables","github-actions","setup"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Byloth.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}},"created_at":"2022-04-20T21:08:23.000Z","updated_at":"2024-04-18T14:13:00.000Z","dependencies_parsed_at":"2023-09-28T03:58:07.445Z","dependency_job_id":null,"html_url":"https://github.com/Byloth/docker-setup-action","commit_stats":{"total_commits":20,"total_committers":4,"mean_commits":5.0,"dds":0.35,"last_synced_commit":"bfb67fe891557a6624b57a55f04287158f70c366"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byloth%2Fdocker-setup-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byloth%2Fdocker-setup-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byloth%2Fdocker-setup-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byloth%2Fdocker-setup-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Byloth","download_url":"https://codeload.github.com/Byloth/docker-setup-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248765652,"owners_count":21158294,"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","environment-variables","github-actions","setup"],"created_at":"2025-02-16T08:19:14.027Z","updated_at":"2026-05-08T13:09:42.427Z","avatar_url":"https://github.com/Byloth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker environment setup 🐋\n\n## An action to easily set up a Docker build environment with some useful environment variables.\n\n### Usage\n\nHere's an example of how to use this action, with all the parameters filled in:\n\n```yaml\njobs:\n  setup:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Docker environment setup\n        uses: byloth/docker-setup-action@v1\n        with:\n          registry: registry.domain.io\n          repository: AccountUsername/repository-name\n          shaLength: '8'\n```\n\n### Inputs\n\n| Name         | Required | Default                      | Description                                                 |\n|--------------|----------|------------------------------|-------------------------------------------------------------|\n| `registry`   | false    | `''`                         | The registry to prepend to the Docker image name.           |\n| `repository` | false    | `'${{ github.repository }}'` | The repository to use as a Docker image name.               |\n| `shaLength`  | false    | `'7'`                        | The length to shorten the SHA to use as a Docker image tag. |\n\n### Outputs\n\n#### `shortSha`\n\nThe shortened SHA of the current commit (retrieved from the `GITHUB_SHA` environment variable)\nbased on the specified `shaLength` from the input.  \nThis information is also injected into the environment via the `GITHUB_SHORT_SHA` environment variable.\n\nYou can use it as the tag of the Docker image built by your action.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eExample:\u003c/b\u003e\u003c/summary\u003e\n\n```sh\n# Input\nGITHUB_SHA=\"52dd68e7dd36a8b1b73d071d9eb54d0899052c77\"\nSHA_LENGTH=\"8\"\n\n# Output\nGITHUB_SHORT_SHA=\"52dd68e7\"\n```\n\n\u003c/details\u003e\n\n#### `branchSlug`\n\nThe slugified version of the branch name (retrieved from the `GITHUB_REF_NAME` environment variable).  \nThis information is also injected into the environment via the `GITHUB_REF_SLUG` environment variable.\n\nYou can use it as the tag of the Docker image built by your action.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eExample:\u003c/b\u003e\u003c/summary\u003e\n\n```sh\n# Inputs\nGITHUB_REF_NAME=\"feature/gh-actions\"\n\n# Output\nGITHUB_REF_SLUG=\"feature-gh-actions\"\n```\n\n\u003c/details\u003e\n\n#### `dockerImage`\n\nThe Docker image name matching the `repository` and optionally the `registry` from the input.  \nThis information is also injected into the environment via the `DOCKER_IMAGE` environment variable.\n\nYou can use it as the name of the Docker image built by your action.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eExample:\u003c/b\u003e\u003c/summary\u003e\n\n```sh\n# Inputs\nREPOSITORY=\"Byloth/cmangos-docker\"\n\n# Output\nDOCKER_IMAGE=\"byloth/cmangos-docker\"\n```\n\n... or if you use a specific registry:\n\n```sh\n# Inputs\nREGISTRY=\"ghcr.io\"\nREPOSITORY=\"Bylothink/do-you-dare\"\n\n# Output\nDOCKER_IMAGE=\"ghcr.io/bylothink/do-you-dare\"\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyloth%2Fdocker-setup-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyloth%2Fdocker-setup-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyloth%2Fdocker-setup-action/lists"}