{"id":19264450,"url":"https://github.com/dcsg/datetime-version-resource","last_synced_at":"2025-04-21T18:31:55.400Z","repository":{"id":141488180,"uuid":"266492427","full_name":"dcsg/datetime-version-resource","owner":"dcsg","description":"Concourse CI - Date Time Version Resource","archived":false,"fork":false,"pushed_at":"2020-05-26T18:17:00.000Z","size":12,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T15:13:50.933Z","etag":null,"topics":["concourse-ci","concourse-resource","concouse","datetime","version"],"latest_commit_sha":null,"homepage":"","language":"Go","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/dcsg.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":"2020-05-24T07:36:06.000Z","updated_at":"2024-09-08T16:38:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"367cb154-407d-42df-b1fa-0c01d3299dcc","html_url":"https://github.com/dcsg/datetime-version-resource","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcsg%2Fdatetime-version-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcsg%2Fdatetime-version-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcsg%2Fdatetime-version-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcsg%2Fdatetime-version-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcsg","download_url":"https://codeload.github.com/dcsg/datetime-version-resource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250111083,"owners_count":21376586,"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":["concourse-ci","concourse-resource","concouse","datetime","version"],"created_at":"2024-11-09T19:41:15.024Z","updated_at":"2025-04-21T18:31:55.062Z","avatar_url":"https://github.com/dcsg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Date Time Version Resource\n\nImplements a [Concourse CI](https://concourse-ci.org/) resource type to generate a date time version to be used in your pipeline. \n\n## Source Configuration\n\n* `timezone`: *Optional.* The Timezone in which you want the date generated. Default is `UTC`.\n\n* `format`: *Optional.* The Format of the output Date Time version, it uses the [Go Time Format](https://golang.org/src/time/format.go). Default is `20060102-150405`.\n\n## Behavior\n\n### `check`: None.\n\n### `in`: Generates a `version` file containing the Date Time Version.\n\n#### Parameters\n\n*None.*\n\n### `out`: Generates a Date Time version in the Timezone and Format defined.\n\n#### Parameters\n\n*None.*\n\n## Example\n\n```yaml\n---\nresource_types:\n- name: datetime-version\n  type: registry-image\n  source:\n    repository: dcsg/datetime-version-resource\n\nresources:\n- name: datetime-version\n  type: datetime-version\n  source:\n    timezone: 'Europe/Lisbon' # default is 'UTC'\n    format: '20060102.150405' # default is '20060102-150405'\n\n- name: master-code\n  type: git\n  icon: git\n  source:\n    uri: https://github.com/dcsg/datetime-version-resource.git\n    branch: master\n\njobs:\n  - name: notify-bugsnag\n    plan:\n      - put: datetime-version\n      - put: master-code\n        params:\n          // other git config params\n          tag: datetime-version/version\n          only_tag: true\n```\n\n## Development\n\n### Prerequisites\n\n* golang is *required* - version 1.14.x is tested; earlier versions may also\n  work.\n* docker is *required* - version 19.03.x is tested; earlier versions may also\n  work.\n\n### Running the tests\n\nThe tests have been embedded with the `Dockerfile`; ensuring that the testing\nenvironment is consistent across any `docker` enabled platform. When the docker\nimage builds, the test are run inside the docker container, on failure they\nwill stop the build.\n\nRun the tests with the following command:\n\n```sh\ndocker build -t datetime-version-resource -f dockerfiles/Dockerfile .\n```\n\n### Contributing\n\nPlease make all pull requests to the `master` branch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcsg%2Fdatetime-version-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcsg%2Fdatetime-version-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcsg%2Fdatetime-version-resource/lists"}