https://github.com/swissgrc/docker-azure-pipelines-git
🐳 Docker image for running Git in an Azure Pipelines container job
https://github.com/swissgrc/docker-azure-pipelines-git
azure-devops azure-pipelines docker git hacktoberfest
Last synced: about 1 month ago
JSON representation
🐳 Docker image for running Git in an Azure Pipelines container job
- Host: GitHub
- URL: https://github.com/swissgrc/docker-azure-pipelines-git
- Owner: swissgrc
- License: mit
- Created: 2023-05-22T06:43:16.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2025-06-02T11:27:18.000Z (about 1 year ago)
- Last Synced: 2025-06-02T23:15:03.964Z (about 1 year ago)
- Topics: azure-devops, azure-pipelines, docker, git, hacktoberfest
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/swissgrc/azure-pipelines-git
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Docker image for running Git in an Azure Pipelines container job
[](https://github.com/swissgrc/docker-azure-pipelines-git/blob/main/LICENSE) [](https://github.com/swissgrc/docker-azure-pipelines-git/actions/workflows/publish.yml) [](https://sonarcloud.io/summary/new_code?id=swissgrc_docker-azure-pipelines-git) [](https://hub.docker.com/r/swissgrc/azure-pipelines-git) [](https://hub.docker.com/r/swissgrc/azure-pipelines-git)
> ## ⚠️ This repository is deprecated
>
> This image is no longer maintained. Git is now part of [`azure-pipelines-terra`](https://github.com/swissgrc/docker-azure-pipelines/pkgs/container/azure-pipelines-terra) in our new monorepo: [`swissgrc/docker-azure-pipelines`](https://github.com/swissgrc/docker-azure-pipelines).
>
> **Migration:**
>
> ```
> # Old
> ghcr.io/swissgrc/azure-pipelines-git:
> docker.io/swissgrc/azure-pipelines-git:
>
> # New
> ghcr.io/swissgrc/azure-pipelines-terra:
> ```
>
> **Timeline:**
>
> - **2026-05-01** — Deprecated, repository archived (read-only)
> - **2026-07-01** — Container images on ghcr.io and docker.io will be deleted. All existing tags remain available until this date.
> - **2026-09-01** — This repository will be deleted from GitHub
>
> **Questions about migration?** Please use the [Discussions](https://github.com/swissgrc/docker-azure-pipelines/discussions) on the new repository.
Docker image to run Git in [Azure Pipelines container jobs].
The image contains also Docker CLI to access Docker engine on the agent.
## Usage
This image can be used to run Git in [Azure Pipelines container jobs].
### Azure Pipelines Container Job
To use the image in an Azure Pipelines Container Job, add one of the following example tasks and use it with the `container` property.
The following example shows the container used for a deployment step which shows Git version:
```yaml
- stage: deploy
jobs:
- deployment: runGit
container: swissgrc/azure-pipelines-git:latest
environment: smarthotel-dev
strategy:
runOnce:
deploy:
steps:
- bash: |
git version
```
## Included Software
- [swissgrc/azure-pipelines-dockercli](https://github.com/swissgrc/docker-azure-pipelines-dockercli) as base image
- Git
- Git LFS
## Tags
| Tag | Description | Size |
|------------|-----------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| latest | Latest stable release (from `main` branch) |  |
| unstable | Latest unstable release (from `develop` branch) |  |
| x.y.z | Image for a specific version of git | |
[Azure Pipelines container jobs]: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases