From f8f5b4ec1c5c13ce777eed478dca523ce0276d2d Mon Sep 17 00:00:00 2001 From: jyje Date: Sat, 7 Sep 2024 17:35:09 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=8E=89=20ansible:=20Upgrade=20version?= =?UTF-8?q?=20to=20v10.3.0=20from=20v9.5.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 2814979..99378b3 100644 --- a/readme.md +++ b/readme.md @@ -34,10 +34,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 ``` diff --git a/requirements.txt b/requirements.txt index b32642d..a2bbec1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -ansible==9.5.1 +ansible==10.3.0 From 537d80e74e1eda9360f1410b4663e5f2928821b1 Mon Sep 17 00:00:00 2001 From: jyje Date: Sat, 7 Sep 2024 17:40:23 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=93=9C=20readme:=20change=20title=20\?= =?UTF-8?q?=20--no-ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 99378b3..99481b9 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# 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) From 359facbc33c367ada6e11aeb867f22153fa9bc11 Mon Sep 17 00:00:00 2001 From: jyje Date: Sat, 7 Sep 2024 17:56:22 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=93=9C=20readme:=20change=20title=20\?= =?UTF-8?q?=20--no-ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 99481b9..b5f8fda 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,8 @@ 🧑🏼‍🔧 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 From 37e0655b58b3f7dc0ecd02006a7c57a0cc074063 Mon Sep 17 00:00:00 2001 From: jyje Date: Sat, 7 Sep 2024 18:05:35 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=94=A7=20ci/release:=20add=20update?= =?UTF-8?q?=20status=20step=20\=20--no-ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index efce14e..3099456 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,3 +52,7 @@ jobs: tag: ${{ env.image_version }} name: Release ${{ env.image_version }} token: ${{ secrets.GITHUB_TOKEN }} + + - name: Update Status + if: success() + run: echo "RELEASED" >> $GITHUB_ENV From 989fceb7cd7653a85ab839ebe3d2efbb7f54b8f7 Mon Sep 17 00:00:00 2001 From: jyje Date: Sat, 7 Sep 2024 18:14:25 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=F0=9F=94=A7=20ci/release:=20change=20trigg?= =?UTF-8?q?er=20for=20branch=20(--no-ci)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3099456..f5eeab7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,8 +2,8 @@ name: release on: push: - tags: - - "v*" + branches: + - main jobs: build-and-release: @@ -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 @@ -52,7 +69,3 @@ jobs: tag: ${{ env.image_version }} name: Release ${{ env.image_version }} token: ${{ secrets.GITHUB_TOKEN }} - - - name: Update Status - if: success() - run: echo "RELEASED" >> $GITHUB_ENV