Skip to content

Commit a5d88cb

Browse files
committed
ci: last_build replaced by github.com url
1 parent 95f48e5 commit a5d88cb

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

.github/workflows/build_and_test_cosmian_vm.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
107107
- name: Download Cosmian VM client
108108
run: |
109-
wget https://package.cosmian.com/cosmian_vm/1.1.0-rc.2/cosmian_vm
109+
wget https://package.cosmian.com/cosmian_vm/1.1.0-rc.1/cosmian_vm
110110
111111
- name: Change permissions of binaries
112112
run: |
@@ -203,16 +203,16 @@ jobs:
203203
runs-on: ubuntu-22.04
204204
needs: [build-kms-cosmian-vm-image, test-image]
205205
permissions:
206-
contents: 'read'
207-
id-token: 'write'
206+
contents: read
207+
id-token: write
208208
steps:
209209
- name: Checkout
210210
uses: actions/checkout@v4
211211

212212
- name: GCP auth
213213
uses: google-github-actions/auth@v1
214214
with:
215-
credentials_json: "${{ secrets.GOOGLE_COSMIAN_DEV_CREDENTIALS }}"
215+
credentials_json: ${{ secrets.GOOGLE_COSMIAN_DEV_CREDENTIALS }}
216216

217217
- name: Copy image to public project
218218
if: startsWith(github.ref, 'refs/tags') && inputs.distrib != 'rhel'

.github/workflows/main_release.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,6 @@ jobs:
5353
python_and_docker:
5454
uses: ./.github/workflows/build_and_test_docker_image.yml
5555

56-
cosmian_vm:
57-
uses: ./.github/workflows/build_and_test_cosmian_vm.yml
58-
strategy:
59-
matrix:
60-
distrib: [ubuntu, rhel]
61-
name: ${{ matrix.distrib }} -> GCP KMS Cosmian VM image
62-
secrets: inherit
63-
with:
64-
distrib: ${{ matrix.distrib }}
65-
6656
ckms_gui:
6757
runs-on: ubuntu-latest
6858
if: startsWith(github.ref, 'refs/tags')
@@ -154,7 +144,6 @@ jobs:
154144
- cargo-doc
155145
- build
156146
- python_and_docker
157-
- cosmian_vm
158147
- clean_env_test
159148
runs-on: [self-hosted, not-sgx]
160149
env:
@@ -197,6 +186,18 @@ jobs:
197186
with:
198187
files: ./*.zip
199188

189+
cosmian_vm:
190+
needs:
191+
- release
192+
uses: ./.github/workflows/build_and_test_cosmian_vm.yml
193+
strategy:
194+
matrix:
195+
distrib: [ubuntu, rhel]
196+
name: ${{ matrix.distrib }} -> GCP KMS Cosmian VM image
197+
secrets: inherit
198+
with:
199+
distrib: ${{ matrix.distrib }}
200+
200201
python_publish:
201202
name: python publish
202203
needs:

scripts/install_kms_redhat.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ yum update -y && yum install -y unzip nginx
77

88
# Download KMS zip file
99
curl -o kms-rhel9.zip https://package.cosmian.com/kms/last_build/rhel9.zip
10-
# curl -o kms-rhel9.zip https://package.cosmian.com/kms/4.12.0/rhel9.zip
10+
# TODO(manu): To be replaced in next release by:
11+
#curl -o kms-rhel9.zip https://github.com/Cosmian/kms/releases/latest/download/rhel9.zip
1112

1213
# Extract content and copy the executable
1314
unzip kms-rhel9.zip && cp rhel9/cosmian_kms_server /usr/local/sbin/cosmian_kms && chmod 755 /usr/local/sbin/cosmian_kms && rm -rf rhel9.zip rhel9/

scripts/install_kms_ubuntu.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export DEBIAN_FRONTEND=noninteractive
88
apt-get update && apt-get install --no-install-recommends -y unzip nginx && apt-get clean && rm -rf /var/lib/apt/lists/*
99

1010
# Download KMS zip file
11-
curl -o kms-ubuntu-22_04.zip https://package.cosmian.com/kms/4.12.0/ubuntu_22_04.zip
11+
curl -o kms-ubuntu-22_04.zip https://github.com/Cosmian/kms/releases/latest/download/ubuntu_22_04.zip
1212

1313
# Extract content and copy the executable
1414
unzip kms-ubuntu-22_04.zip && cp ubuntu_22_04/cosmian_kms_server /usr/local/sbin/cosmian_kms && chmod 755 /usr/local/sbin/cosmian_kms && rm -rf kms-ubuntu-22_04.zip ubuntu_22_04/

0 commit comments

Comments
 (0)