Skip to content

Commit fae374f

Browse files
authored
Merge pull request #927 from stackhpc/zed-fix-check-container-tags
CI: Fix check container image tags job for Ark
2 parents 59ce72a + 8522950 commit fae374f

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

.github/path-filters.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ aio:
2020
- 'kayobe-env'
2121
- 'requirements.txt'
2222
- 'terraform/aio/**'
23+
check-tags:
24+
- '.github/workflows/stackhpc-check-tags.yml'
25+
- 'etc/kayobe/kolla-image-tags.yml'

.github/workflows/stackhpc-check-tags.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
description: Kayobe container image
1111
type: string
1212
required: true
13+
if:
14+
description: Whether to run the workflow (workaround for required status checks issue)
15+
type: boolean
16+
default: true
1317
secrets:
1418
KAYOBE_VAULT_PASSWORD:
1519
required: true
@@ -19,7 +23,7 @@ env:
1923
jobs:
2024
check-tags:
2125
name: Check container image tags
22-
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
26+
if: inputs.if
2327
runs-on: arc-skc-aio-runner
2428
permissions: {}
2529
env:

.github/workflows/stackhpc-pull-request.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
2121
outputs:
2222
aio: ${{ steps.changes.outputs.aio }}
23+
check-tags: ${{ steps.changes.outputs.check-tags }}
2324
steps:
2425
- name: GitHub Checkout
2526
uses: actions/checkout@v4
@@ -79,12 +80,14 @@ jobs:
7980
check-tags:
8081
name: Check container image tags
8182
needs:
83+
- check-changes
8284
- build-kayobe-image
8385
uses: ./.github/workflows/stackhpc-check-tags.yml
8486
with:
8587
kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
88+
if: ${{ needs.check-changes.outputs.check-tags == 'true' }}
8689
secrets: inherit
87-
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
90+
if: ${{ ! failure() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
8891

8992
all-in-one-ubuntu-jammy-ovs:
9093
name: aio (Ubuntu Jammy OVS)

etc/kayobe/ansible/check-tags.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
set_fact:
1717
kolla_images: "{{ kolla_images_result.stdout | from_yaml }}"
1818

19-
- name: Set a fact about the Pulp URL
20-
set_fact:
21-
pulp_url: "{{ stackhpc_repo_mirror_url }}"
22-
2319
# Use state=read and allow_missing=false to check for missing tags in test pulp.
2420
- import_role:
2521
name: stackhpc.pulp.pulp_container_content
@@ -30,6 +26,7 @@
3026
{%- set repository = kolla_docker_namespace ~ "/" ~ image -%}
3127
{%- set content = {
3228
"allow_missing": False,
29+
"is_push": pulp_url == stackhpc_release_pulp_url,
3330
"repository": repository,
3431
"state": "read",
3532
"tags": tags,

etc/kayobe/ansible/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ collections:
77
- name: pulp.squeezer
88
version: 0.0.13
99
- name: stackhpc.pulp
10-
version: 0.5.4
10+
version: 0.5.5
1111
- name: stackhpc.hashicorp
1212
version: 2.4.0
1313
- name: stackhpc.kayobe_workflows

0 commit comments

Comments
 (0)