{"id":32465693,"url":"https://github.com/sitkoru/docker-deploy-action","last_synced_at":"2025-10-26T13:59:08.859Z","repository":{"id":41968133,"uuid":"446693923","full_name":"sitkoru/docker-deploy-action","owner":"sitkoru","description":"Action to deploy docker container","archived":false,"fork":false,"pushed_at":"2024-06-06T04:59:35.000Z","size":16,"stargazers_count":0,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-05T10:02:14.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/sitkoru.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-01-11T05:49:11.000Z","updated_at":"2024-06-06T04:59:05.000Z","dependencies_parsed_at":"2024-06-06T06:04:03.693Z","dependency_job_id":"f1333b0b-83dd-4ff2-9d24-40f7217b625f","html_url":"https://github.com/sitkoru/docker-deploy-action","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.33333333333333337","last_synced_commit":"2a8e2e7d306af8087ea78f6eb4296b87d4d5cd4f"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sitkoru/docker-deploy-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fdocker-deploy-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fdocker-deploy-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fdocker-deploy-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fdocker-deploy-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sitkoru","download_url":"https://codeload.github.com/sitkoru/docker-deploy-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fdocker-deploy-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281114804,"owners_count":26446046,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-10-26T13:59:03.464Z","updated_at":"2025-10-26T13:59:08.854Z","avatar_url":"https://github.com/sitkoru.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-deploy-action\n\nAction to deploy docker container\n\n```yml\nname: Release\n\non:\n  release:\n    types:\n      - released\n  workflow_dispatch:\n\njobs:\n  build:\n    name: Build\n    runs-on: ubuntu-latest\n    outputs:\n      version: ${{ steps.prep.outputs.version }}\n    steps:\n      - name: Prepare\n        id: prep\n        shell: bash\n        run: |\n          DOCKER_IMAGE=${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_IMAGE_NAME }}\n          VERSION=${GITHUB_REF#refs/tags/}\n          TAGS=\"${DOCKER_IMAGE}:${VERSION}\"\n          if [[ $VERSION =~ ^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$ ]]; then\n              MINOR=${VERSION%.*}\n              MAJOR=${MINOR%.*}\n              TAGS=\"$TAGS,${DOCKER_IMAGE}:${MINOR},${DOCKER_IMAGE}:${MAJOR},${DOCKER_IMAGE}:latest\"\n          fi\n          echo ::set-output name=tags::${TAGS}\n          echo ::set-output name=version::${VERSION}\n          echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')\n        # build docker image\n  deploy:\n    name: Deploy\n    runs-on: ubuntu-latest\n    needs: [build]\n    steps:\n      - name: Deploy service\n        uses: sitkoru/docker-deploy-action@v1\n        with:\n          name: ${{ secrets.SERVICE_NAME }}\n          version: ${{ needs.build.outputs.version }}\n          host: ${{ secrets.DEPLOY_HOST }}\n          user: ${{ secrets.DEPLOY_USER }}\n          key: ${{ secrets.SSH_PRIVATE_KEY }}\n          dir: ${{ secrets.HOST_WORKING_DIR }}\n          script: ${{ secrets.HOST_COMPOSE_SCRIPT }}\n          # uncomment if service needs Vault\n          # vault_policy: ${{ secrets.VAULT_POLICY }}\n          # vault_container: ${{ secrets.VAULT_CONTAINER }}\n          # vault_username: ${{ secrets.VAULT_USERNAME }}\n          # vault_password: ${{ secrets.VAULT_PASSWORD }}\n          # vault_period: ${{ secrets.VAULT_PERIOD }}\n          # uncomment if service needs login to docker registry\n          # docker_registry_login: ${{ secrets.DOCKER_REGISTRY_LOGIN }}\n          # docker_registry_password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}\n          # docker_registry_url: ${{ secrets.DOCKER_REGISTRY_URL }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitkoru%2Fdocker-deploy-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsitkoru%2Fdocker-deploy-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitkoru%2Fdocker-deploy-action/lists"}