{"id":16179291,"url":"https://github.com/jonashackt/gitlab-ci-shell-example","last_synced_at":"2025-03-19T01:30:56.223Z","repository":{"id":147269838,"uuid":"204466042","full_name":"jonashackt/gitlab-ci-shell-example","owner":"jonashackt","description":"Example project using GitLab CI shell executor","archived":false,"fork":false,"pushed_at":"2024-08-26T17:26:10.000Z","size":25,"stargazers_count":11,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T13:47:33.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/jonashackt.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":"2019-08-26T11:59:39.000Z","updated_at":"2023-07-31T18:20:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"f13b08f5-2646-4ed1-9981-5fb994701fd7","html_url":"https://github.com/jonashackt/gitlab-ci-shell-example","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/jonashackt%2Fgitlab-ci-shell-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fgitlab-ci-shell-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fgitlab-ci-shell-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fgitlab-ci-shell-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonashackt","download_url":"https://codeload.github.com/jonashackt/gitlab-ci-shell-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960361,"owners_count":20375102,"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-10T05:26:38.931Z","updated_at":"2025-03-19T01:30:55.925Z","avatar_url":"https://github.com/jonashackt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Example app for building inside GitLab CI - using shell executor\n=============================\n\nThis GitLab CI example needs a corresponding GitLab runner configuration - see https://github.com/jonashackt/gitlab-ci-stack#configure-gitlab-runner-with-shell-executor\n\nSee [.gitlab-ci.yml](.gitlab-ci.yml):\n\n```\n# One of the new trends in Continuous Integration/Deployment is to:\n# (see https://docs.gitlab.com/ee/ci/docker/using_docker_build.html)\n#\n# 1. Create an application image\n# 2. Run tests against the created image\n# 3. Push image to a remote registry\n# 4. Deploy to a server from the pushed image\n\nstages:\n  - build\n  - test\n  - push\n  - deploy\n\n# see usage of Namespaces at https://docs.gitlab.com/ee/user/group/#namespaces\nvariables:\n  REGISTRY_GROUP_PROJECT: $CI_REGISTRY/root/gitlab-ci-shell-example\n\n# see how to login at https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#using-the-gitlab-container-registry\nbefore_script:\n  - docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY\n\nbuild-image:\n  stage: build\n  # the tag 'shell' advices only GitLab runners using this tag to pick up that job\n  tags:\n    - shell\n  script:\n    - docker build . --tag $REGISTRY_GROUP_PROJECT/gitlab-ci-shell-example:latest\n\ntest-image:\n  stage: test\n  tags:\n    - shell\n  script:\n    - echo Insert fancy API test here!\n\npush-image:\n  stage: push\n  tags:\n    - shell\n  script:\n    - docker push $REGISTRY_GROUP_PROJECT/gitlab-ci-shell-example:latest\n\ndeploy-2-dev:\n  stage: deploy\n  tags:\n    - shell\n  script:\n    - echo You should use Ansible here!\n  environment:\n    name: dev\n    url: https://dev.jonashackt.io\n\n\n```\n\n### Swagger REST-API-Documentation\n\nStart the app and go to [http://localhost:8080/v2/api-docs](http://localhost:8080/v2/api-docs) to see all endpoints as JSON.\n\nUI-Documentation you will find under [http://localhost:8080/swagger-ui.html](http://localhost:8080/swagger-ui.html).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashackt%2Fgitlab-ci-shell-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonashackt%2Fgitlab-ci-shell-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashackt%2Fgitlab-ci-shell-example/lists"}