Skip to content

Commit fd6c18b

Browse files
authored
Update and pin versions of actions and images (#25)
* feat!: update and pin version of actions and containers within `vars.yml` * fix: add missing `EOL` and undefined variable * feat: bump versions used in test workflow
1 parent 15f17da commit fd6c18b

File tree

7 files changed

+31
-19
lines changed

7 files changed

+31
-19
lines changed

.github/workflows/test-collection.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323

2424
steps:
2525
- name: Check out the codebase.
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4.2.0
2727

2828
- name: Set up Python 3.
29-
uses: actions/setup-python@v4
29+
uses: actions/setup-python@v5.2.0
3030
with:
3131
python-version: '3.x'
3232

@@ -39,7 +39,7 @@ jobs:
3939
ANSIBLE_FORCE_COLOR: '1'
4040

4141
- name: Upload workflows produced ${{ matrix.name }}
42-
uses: actions/upload-artifact@v3
42+
uses: actions/upload-artifact@v4.4.0
4343
with:
4444
name: "${{ format('github_kayobe_workflows_{0}', matrix.name) }}"
4545
path: "${{ format('tests/.github/{0}', matrix.name) }}"

roles/github/templates/build-kayobe-docker-image.yml.j2

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
<%- endif +%>
2525
runs-on: %% github_runs_on %%
2626
container:
27-
image: docker:24.0-git
27+
image: docker:%% github_docker_image_version %%
2828
permissions:
2929
contents: read
3030
packages: %% 'write' if (github_registry.url | default(github_default_registry.url)) == 'ghcr.io' else 'none' %%
@@ -34,36 +34,36 @@ jobs:
3434
%% github_checkout_hook | indent(width=6, first=false) %%
3535
<% endif %>
3636
- name: Checkout kayobe config
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@%% github_actions_checkout_version %%
3838
with:
3939
submodules: true
4040
path: docker-image-build
4141

4242
- name: Log in to the Container registry
43-
uses: docker/login-action@v2
43+
uses: docker/login-action@%% github_docker_login_action_version %%
4444
with:
4545
registry: %% github_registry.url | default(github_default_registry.url) %%
4646
username: %% github_registry.username | default(github_default_registry.username) %%
4747
password: %% github_registry.password | default(github_default_registry.password) %%
4848

4949
<% if github_buildx_enabled %>
5050
- name: Set up Docker Buildx
51-
uses: docker/setup-buildx-action@v2
51+
uses: docker/setup-buildx-action@%% github_docker_setup_buildx_action_version %%
5252
with:
5353
driver-opts: |
54-
image=moby/buildkit:v0.12.1
54+
image=moby/buildkit:%% github_buildkit_image_version %%
5555
<% if github_buildx_inline_config | length >= 1 %>
5656
config-inline: |
5757
%% github_buildx_inline_config | indent(12) | trim %%
5858
<% endif %>
59-
version: v0.11.2
59+
version: %% github_buildx_version %%
6060

6161
<% endif %>
6262
<% if github_kayobe_hook | length >= 1 %>
6363
%% github_kayobe_hook | indent(width=6, first=false) %%
6464
<% endif %>
6565
- name: Build and push Docker image
66-
uses: docker/build-push-action@v4
66+
uses: docker/build-push-action@%% github_docker_build_push_action_version %%
6767
with:
6868
file: ./docker-image-build/.automation/docker/kayobe/Dockerfile
6969
context: docker-image-build

roles/github/templates/generic.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
%% github_checkout_hook | indent(width=6, first=false) %%
3737
<% endif %>
3838
- name: Checkout kayobe config
39-
uses: actions/checkout@v3
39+
uses: actions/checkout@%% github_actions_checkout_version %%
4040
with:
4141
submodules: true
4242
path: kayobe-config

roles/github/templates/prepare-runner.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
openstack_release: ${{ steps.openstack_release.outputs.openstack_release }}
2020
steps:
2121
- name: Checkout kayobe config
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@%% github_actions_checkout_version %%
2323

2424
- name: Extract OpenStack Release
2525
id: openstack_release

roles/github/templates/run-config-diff.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
%% github_checkout_hook | indent(width=6, first=false) %%
4242
<% endif %>
4343
- name: Checkout kayobe config
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@%% github_actions_checkout_version %%
4545
with:
4646
submodules: true
4747
path: kayobe-config
@@ -75,7 +75,7 @@ jobs:
7575
cat /tmp/kayobe-config-diff
7676

7777
- name: Upload artifact
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@%% github_actions_upload_artifact_version %%
7979
with:
8080
name: config-diff-artifacts
8181
path: |

roles/github/templates/run-tempest.yml.j2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
%% github_checkout_hook | indent(width=6, first=false) %%
3939
<% endif %>
4040
- name: Checkout kayobe config
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@%% github_actions_checkout_version %%
4242
with:
4343
submodules: true
4444
path: kayobe-config
@@ -47,7 +47,7 @@ jobs:
4747
run: sudo ln -s $PWD/kayobe-config /src
4848

4949
- name: Get Previous Workflow Run
50-
uses: actions/github-script@v6
50+
uses: actions/github-script@%% github_actions_github_script_version %%
5151
id: get_previous_run
5252
if: ${{ inputs.run_previous_failed }}
5353
with:
@@ -67,7 +67,7 @@ jobs:
6767
result-encoding: string
6868

6969
- name: Download previous Tempest test artifacts
70-
uses: actions/download-artifact@v4
70+
uses: actions/download-artifact@%% github_actions_download_artifact_version %%
7171
id: previous_artifacts
7272
if: ${{ inputs.run_previous_failed }}
7373
with:
@@ -101,7 +101,7 @@ jobs:
101101
cat /stack/tempest-artifacts/stdout.log || echo "stdout.log is missing"
102102

103103
- name: Build artifact
104-
uses: actions/upload-artifact@v3
104+
uses: actions/upload-artifact@%% github_actions_upload_artifact_version %%
105105
with:
106106
name: tempest-artifacts
107107
path: |
@@ -116,7 +116,7 @@ jobs:
116116
<% endif %>
117117

118118
- name: Publish Test Report
119-
uses: mikepenz/action-junit-report@db71d41eb79864e25ab0337e395c352e84523afe # v4.3.1
119+
uses: mikepenz/action-junit-report@%% github_mikepenz_action_junit_report_version %%
120120
if: success() || failure()
121121
with:
122122
report_paths: /stack/tempest-artifacts/rally-junit.xml

roles/github/vars/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,15 @@ github_kayobe_pull_request_arguments:
4848
- KAYOBE_AUTOMATION_PR_TYPE
4949
- KAYOBE_AUTOMATION_PR_TITLE
5050
- KAYOBE_AUTOMATION_PR_URL
51+
52+
github_docker_image_version: "27.3.1"
53+
github_actions_checkout_version: "v4.2.0"
54+
github_docker_login_action_version: "v3.3.0"
55+
github_docker_setup_buildx_action_version: "v3.6.1"
56+
github_buildkit_image_version: "v0.16.0"
57+
github_buildx_version: "v0.17.1"
58+
github_docker_build_push_action_version: "v6.7.0"
59+
github_actions_upload_artifact_version: "v4.4.0"
60+
github_actions_github_script_version: "v7.0.1"
61+
github_actions_download_artifact_version: "v4.1.8"
62+
github_mikepenz_action_junit_report_version: "db71d41eb79864e25ab0337e395c352e84523afe" # v4.3.1

0 commit comments

Comments
 (0)