{"id":18036084,"url":"https://github.com/kjuly/docker-image-publisher","last_synced_at":"2025-04-04T23:26:11.157Z","repository":{"id":238486420,"uuid":"796658622","full_name":"Kjuly/docker-image-publisher","owner":"Kjuly","description":"Github Action to build and push tagged Docker image to a Registry.","archived":false,"fork":false,"pushed_at":"2024-05-11T09:35:49.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T08:13:10.768Z","etag":null,"topics":["build","docker","dockerhub","github-action","github-container-registry","image","publish"],"latest_commit_sha":null,"homepage":"","language":null,"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/Kjuly.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-06T11:35:54.000Z","updated_at":"2024-05-11T09:28:56.000Z","dependencies_parsed_at":"2024-05-11T10:43:08.084Z","dependency_job_id":null,"html_url":"https://github.com/Kjuly/docker-image-publisher","commit_stats":null,"previous_names":["kjuly/docker-image-publisher"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Fdocker-image-publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Fdocker-image-publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Fdocker-image-publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Fdocker-image-publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kjuly","download_url":"https://codeload.github.com/Kjuly/docker-image-publisher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247264268,"owners_count":20910561,"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":["build","docker","dockerhub","github-action","github-container-registry","image","publish"],"created_at":"2024-10-30T12:11:31.464Z","updated_at":"2025-04-04T23:26:11.139Z","avatar_url":"https://github.com/Kjuly.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-image-publisher\nGithub Action to build and push tagged Docker image to a Registry.\n\n## Usage\n\n### Push to Docker Hub\n\n```yaml\npermissions:\n  contents: read\n  packages: write\n  id-token: write\n  attestations: write\n\njobs:\n  build-n-push-image:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Build and Push Image to Docker Hub\n        uses: kjuly/docker-image-publisher@main\n        with:\n          image_name: user/image\n          username: ${{ secrets.DOCKERHUB_USERNAME }}\n          token: ${{ secrets.DOCKERHUB_TOKEN }}\n```\nThe format of `image_name` is \"user/image\", which is optional here. If you don't provide one, `${{ github.repository }}` will by used.\n\nFor `DOCKERHUB_USERNAME` \u0026 `DOCKERHUB_TOKEN`, go to the repository's \"Settings \u003e Security \u003e Secrets and variables \u003e Actions \u003e Repository secrets\" and add your Docker Hub username and token there.\n\nSee [Create and manage access tokens][create-n-manage-access-tokens] for the details about generating Docker Hub tokens.\n\n---\n### Push to Github Container Registry\n\n```yaml\n...\n\n- name: Build and Push Image to Github Container Registry\n  uses: kjuly/docker-image-publisher@main\n  with:\n    registry: ghcr.io\n    image_name: ${{ env.IMAGE_NAME }}\n    username: ${{ github.actor }}\n    token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n[create-n-manage-access-tokens]: https://docs.docker.com/security/for-developers/access-tokens/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjuly%2Fdocker-image-publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjuly%2Fdocker-image-publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjuly%2Fdocker-image-publisher/lists"}