Skip to content

Commit 93f4a7e

Browse files
committed
Add container image versions
1 parent 66c3931 commit 93f4a7e

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.github/workflows/docker-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
images: ghcr.io/${{ github.repository }}
4141
tags: |
4242
type=raw,value=${{ matrix.ansible-version }}-preview
43+
type=sha,prefix=${{ matrix.ansible-version }}-,suffix=-preview,format=short
4344
4445
- name: Build and Push Docker image
4546
uses: docker/build-push-action@v5

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
"cSpell.words": [
5151
"ansible",
5252
"ansiblectl",
53+
"buildx",
54+
"Buildx",
5355
"dpkg",
5456
"pipx"
5557
]

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,27 @@ ToDo.
6666
### PowerShell
6767

6868
The latest PowerShell version is also installed in the container.
69+
70+
## Container Image Versions
71+
72+
The AnsibleCtl PowerShell module allows you to specify the Ansible version to use. The version corresponds to the tag of the container image. The following list shows the generated tags.
73+
74+
- `latest`
75+
This is set to the latest stable Ansible version.
76+
- `<AnsibleVersion>`
77+
This tag corresponds to the specified Ansible community package release version. It's always used as a three-digit version number. Verify the official [Releases and maintenance - Ansible community changelogs](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-community-changelogs) for available versions.
78+
- `<AnsibleVersion>-<AnsibleCtlVersion>`
79+
This tag combines the Ansible version with the AnsibleCtl version. This is useful to ensure that you are using a specific AnsibleCtl version along with a specific Ansible version is used.
80+
- `<AnsibleVersion>-preview`
81+
This tag is generated for preview releases of every CI build and always points to the latest CI build for the specified Ansible version.
82+
- `<AnsibleVersion>-<GitCommitId>-preview`
83+
This tag is generated for preview releases of every CI build and combines the Ansible version with the Git commit ID of the current build.
84+
85+
The following placeholders are used in the tags:
86+
87+
- `<AnsibleVersion>`
88+
The version of Ansible (e.g. `11.10.0`, `12.0.0`, etc.).
89+
- `<AnsibleCtlVersion>`
90+
The version of the AnsibleCtl itself, always semantic versioning (e.g. `1.0.0`, etc.).
91+
- `<GitCommitId>`
92+
The short Git commit ID of the current build (e.g. `a1b2c3d`, etc.).

0 commit comments

Comments
 (0)