Skip to content

Commit 6af470d

Browse files
committed
update to execute JFrog installation tests
1 parent 666868e commit 6af470d

File tree

4 files changed

+82
-24
lines changed

4 files changed

+82
-24
lines changed

.github/packaging/common

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
set -xeuo pipefail
3+
DISTRO="$1"
4+
env
5+
cd local
6+
git fetch --unshallow --tags --no-recurse-submodules
7+
git submodule update --init
8+
ls -laht
9+
git branch -v
10+
.github/packaging/common/entrypoint.sh -c -d $DISTRO
11+
.github/packaging/common/entrypoint.sh -e -d $DISTRO
12+
ls -laht ../dist
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -xeuo pipefail
3+
DISTRO="$1"
4+
REPO_NAME="$2"
5+
env
6+
git fetch --unshallow --tags --no-recurse-submodules
7+
.github/packaging/common/example-test.sh "$DISTRO" "$REPO_NAME"

.github/workflows/build-artifacts.yml

Lines changed: 62 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ on:
77
workflow_dispatch:
88
push:
99
branches:
10-
- "dev/*"
11-
- "hotfix/*"
10+
- 'dev/*'
11+
- 'hotfix/*'
1212
tags:
13-
- "*"
13+
- '*'
14+
1415

1516
jobs:
1617
build-artifacts:
@@ -22,39 +23,30 @@ jobs:
2223
- el10
2324
- amzn2023
2425
- debian12
25-
- debian13
26+
#- debian13
2627
- ubuntu20.04
2728
- ubuntu22.04
2829
- ubuntu24.04
2930
host:
3031
- ubuntu-24.04
3132
- ubuntu-24.04-arm
32-
uses: aerospike/shared-workflows/.github/workflows/[email protected].1
33+
uses: aerospike/shared-workflows/.github/workflows/[email protected].2
3334
with:
3435
runs-on: ${{ matrix.host }}
3536
jf-project: database
3637
jf-build-id: ${{ github.run_number }}
3738
# this is the default behaviour so we can leave it out but if it is wanted to be explicit
3839
# we need to use the ref not the ref_name in github actions. The ref_name is the short name and so not a valid ref.
3940
# gh-source-ref: ${{ github.ref }}
40-
build-script: |
41-
set -xeuo pipefail
42-
cd local
43-
git fetch --unshallow --tags --no-recurse-submodules
44-
git submodule update --init
45-
ls -laht
46-
echo ref_name ${{ github.ref_name }}
47-
git branch -v
48-
.github/packaging/common/entrypoint.sh -c -d ${{ matrix.distro }}
49-
.github/packaging/common/entrypoint.sh -e -d ${{ matrix.distro }}
50-
ls -laht ../dist
41+
build-script: local/.github/packaging/project/gha-main.sh "${{ matrix.distro }}"
42+
5143
gh-artifact-directory: dist
5244
gh-artifact-name: unsigned-artifacts-${{ matrix.distro }}-${{ matrix.host }}
5345
gh-retention-days: 1
5446
dry-run: false
5547
oidc-provider-name: database-gh-aerospike
5648
oidc-audience: database-gh-aerospike
57-
jf-build-name: aerospike-admin
49+
jf-build-name: asadm
5850
sign-artifacts:
5951
strategy:
6052
matrix:
@@ -64,23 +56,22 @@ jobs:
6456
- el10
6557
- amzn2023
6658
- debian12
67-
- debian13
59+
#- debian13
6860
- ubuntu20.04
6961
- ubuntu22.04
7062
- ubuntu24.04
7163
host:
7264
- ubuntu-24.04
7365
- ubuntu-24.04-arm
7466
needs: build-artifacts
75-
uses: aerospike/shared-workflows/.github/workflows/[email protected].1
67+
uses: aerospike/shared-workflows/.github/workflows/[email protected].2
7668
with:
7769
gh-artifact-name: signed-artifacts-${{ matrix.distro }}-${{ matrix.host }}
7870
gh-unsigned-artifacts: unsigned-artifacts-${{ matrix.distro }}-${{ matrix.host }}
7971
secrets:
8072
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
8173
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
8274
gpg-key-pass: ${{ secrets.GPG_PASS }}
83-
8475
upload-artifacts:
8576
strategy:
8677
matrix:
@@ -90,18 +81,18 @@ jobs:
9081
- el10
9182
- amzn2023
9283
- debian12
93-
- debian13
84+
#- debian13
9485
- ubuntu20.04
9586
- ubuntu22.04
9687
- ubuntu24.04
9788
host:
9889
- ubuntu-24.04
9990
- ubuntu-24.04-arm
10091
needs: sign-artifacts
101-
uses: aerospike/shared-workflows/.github/workflows/[email protected].1
92+
uses: aerospike/shared-workflows/.github/workflows/[email protected].2
10293
with:
10394
jf-project: database
104-
jf-build-name: aerospike-admin
95+
jf-build-name: asadm
10596
version: ${{ github.ref_name }}
10697
oidc-provider-name: database-gh-aerospike
10798
oidc-audience: database-gh-aerospike
@@ -110,3 +101,51 @@ jobs:
110101
dry-run: false
111102
jf-build-id: ${{ github.run_number }}
112103
jf-metadata-build-id: ${{ github.run_number }}-metadata
104+
test-install-from-jfrog-and-execute:
105+
strategy:
106+
matrix:
107+
distro:
108+
- el8
109+
- el9
110+
- el10
111+
- amzn2023
112+
- debian12
113+
#- debian13
114+
- ubuntu20.04
115+
- ubuntu22.04
116+
- ubuntu24.04
117+
host:
118+
- ubuntu-24.04
119+
- ubuntu-24.04-arm
120+
needs: upload-artifacts
121+
env:
122+
JFROG_CLI_BUILD_NAME: ${{ inputs.jf-build-name || github.workflow }}
123+
JFROG_CLI_LOG_LEVEL: INFO
124+
runs-on: ${{ matrix.host }}
125+
permissions:
126+
contents: read
127+
packages: write
128+
attestations: write
129+
id-token: write
130+
steps:
131+
- name: Install JFrog CLI
132+
id: jf
133+
uses: jfrog/setup-jfrog-cli@5b06f730cc5a6f55d78b30753f8583454b08c0aa # v4.8.1
134+
env:
135+
JF_URL: https://artifact.aerospike.io
136+
JF_PROJECT: database
137+
with:
138+
oidc-provider-name: database-gh-aerospike
139+
oidc-audience: database-gh-aerospike
140+
- name: Checkout
141+
uses: actions/checkout@v5
142+
with:
143+
ref: ${{ github.ref }}
144+
submodules: recursive
145+
146+
- name: Run test cases
147+
env:
148+
JF_TOKEN: ${{ steps.jf.outputs.oidc-token }}
149+
JF_USERNAME: ${{ steps.jf.outputs.oidc-user }}
150+
run: .github/packaging/project/test/gha-test-main.sh ${{ matrix.distro }} ${{ github.event.repository.name }}
151+

0 commit comments

Comments
 (0)