Skip to content

Commit 32f6357

Browse files
committed
Install cosign.
1 parent 668b51c commit 32f6357

File tree

3 files changed

+12
-19
lines changed

3 files changed

+12
-19
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM python:3.11-slim AS minimal
22

3-
ENV VERSION_CT=0.9.0 \
3+
ENV VERSION_COSIGN=2.5.3 \
4+
VERSION_CT=0.9.0 \
45
VERSION_HELM=3.16.4 \
56
METAL_ROLES_VERSION=metal-stack-release-vector-module
67

@@ -31,7 +32,10 @@ RUN set -x \
3132
pyjwt==2.8.0 \
3233
&& curl -Lo ct https://github.com/coreos/container-linux-config-transpiler/releases/download/v${VERSION_CT}/ct-v${VERSION_CT}-x86_64-unknown-linux-gnu \
3334
&& chmod +x ct \
34-
&& mv ct /usr/local/bin/
35+
&& mv ct /usr/local/bin/ \
36+
&& curl -Lo cosign https://github.com/sigstore/cosign/releases/download/v${VERSION_COSIGN}/cosign-linux-amd64 \
37+
&& chmod +x cosign \
38+
&& mv cosign /usr/local/bin/
3539

3640
RUN mkdir -p /usr/share/ansible/collections/ansible_collections/metalstack/base/plugins \
3741
&& cd /usr/share/ansible/collections/ansible_collections/metalstack/base/plugins \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In case your deployment depends on Ansible roles that are referenced in a metal-
88

99
```bash
1010
# requires the metal_stack_release_vector variable to be defined in your ansible variables
11-
$ ansible -m metalstack.base.metal_stack_release_vector localhost
11+
$ ansible localhost -m metalstack.base.metal_stack_release_vector
1212
- Installing ansible-common (v0.6.13) to /root/.ansible/roles/ansible-common
1313
- Installing metal-ansible-modules (v0.2.10) to /root/.ansible/roles/metal-ansible-modules
1414
- Installing metal-roles (v0.15.17) to /root/.ansible/roles/metal-roles

test/group_vars/all/release_vector.yaml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
metal_stack_release_version: develop
2-
cloud_release_version: develop
32

43
metal_stack_release_vectors:
5-
# - url: https://raw.githubusercontent.com/fi-ts/releases/{{ cloud_release_version }}/release.yaml
6-
# variable_mapping_path: cloud_release.mapping
7-
# include_role_defaults: metal-extensions-roles/defaults
8-
# nested:
9-
# - url_path: vectors.metal-stack.url
10-
# variable_mapping_path: metal_stack_release.mapping
11-
# include_role_defaults: metal-roles/common/roles/defaults
12-
134
- url: oci://ghcr.io/metal-stack/releases:{{ metal_stack_release_version }}
145
variable_mapping_path: metal_stack_release.mapping
156
include_role_defaults: metal-roles/common/roles/defaults
16-
17-
# - url: https://raw.githubusercontent.com/metal-stack-cloud/releases/develop/release.yaml
18-
# variable_mapping_path: metal_stack_cloud_release.mapping
19-
# include_role_defaults: metal-stack-cloud-ansible-roles/roles/defaults
20-
# role_aliases:
21-
# - repository: https://github.com/metal-stack-cloud/ansible-roles
22-
# alias: metal-stack-cloud-ansible-roles
7+
oci_cosign_verify_key: |
8+
-----BEGIN PUBLIC KEY-----
9+
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdeAXd2namgVNDT0APmogKGwaV+Q4
10+
rfe4uVgmsyBbb6TrhX5Py6x1PsonDahTvdVpbSGC7QGEjxIHdi8HnJ4Okg==
11+
-----END PUBLIC KEY-----
2312
2413
metal_stack_release_vector_replacements:
2514
- key: name

0 commit comments

Comments
 (0)