Skip to content

Commit

Permalink
πŸ”€ Merge pull request #12 from jyje/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jyje authored Sep 7, 2024
2 parents c67876f + 989fceb commit 14059b4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: release

on:
push:
tags:
- "v*"
branches:
- main

jobs:
build-and-release:
Expand Down Expand Up @@ -45,6 +45,23 @@ jobs:
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.image_version }}
- name: Set tag and push in Github
run: |
# Set Git identity
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Check if the tag already exists
TAG_EXISTS=$(git tag --list ${{ env.image_version }})
if [ -n "$TAG_EXISTS" ]; then
echo "Tag ${{ env.image_version }} already exists."
exit 0
fi
# Create and push the new tag
git tag ${{ env.image_version }}
git push origin ${{ env.image_version }}
- name: Create Release
if: success()
uses: ncipollo/release-action@v1
Expand Down
9 changes: 5 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Ansible Docker Image
# Unofficial Ansible Docker Image
[![release](https://github.com/jyje/ansible/actions/workflows/release.yaml/badge.svg?branch=main)](https://github.com/jyje/ansible/actions/workflows/release.yaml)
[![develop ci-dev.yaml](https://github.com/jyje/ansible/actions/workflows/ci-dev.yaml/badge.svg?branch=develop)](https://github.com/jyje/ansible/actions/workflows/ci-dev.yaml)

πŸ§‘πŸΌβ€πŸ”§ This repository contains the CI pipeline for building an Ansible Docker image. It also provides a repository on ghcr.io for your DevOps usage. Supported architectures are `amd64`, `arm64`.

⚠️ This repository is not affiliated with the official Ansible project. This is a community-maintained project that provides a Docker image for Ansible users. The official Ansible project is maintained in ['ansible-community/ansible-build-data' repository](https://github.com/ansible-community/ansible-build-data). For more information about Ansible, visit the official website at https://ansible.readthedocs.io/projects/ansible-build-data
> [!IMPORTANT]
> This repository is not affiliated with the official Ansible project. This is a community-maintained project that provides a Docker image for Ansible users. The official Ansible project is maintained in ['ansible-community/ansible-build-data' repository](https://github.com/ansible-community/ansible-build-data). For more information about Ansible, visit the official website at https://ansible.readthedocs.io/projects/ansible-build-data
## Getting Started

Expand Down Expand Up @@ -34,10 +35,10 @@ docker pull ghcr.io/jyje/ansible

### Using Specific Version

You can use a specific version of the Ansible Docker image by specifying the version tag. For example, to use version `v9.5.1`, use the following command:
You can use a specific version of the Ansible Docker image by specifying the version tag. For example, to use version `v10.3.0`, use the following command:

```bash
docker pull ghcr.io/jyje/ansible:v9.5.1
docker pull ghcr.io/jyje/ansible:v10.3.0
```


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ansible==9.5.1
ansible==10.3.0

0 comments on commit 14059b4

Please sign in to comment.