Skip to content

Commit d260e5a

Browse files
committed
allies release
Signed-off-by: JvD_Ericsson <[email protected]>
1 parent 1553dda commit d260e5a

File tree

10 files changed

+154
-149
lines changed

10 files changed

+154
-149
lines changed

.azure/scripts/push-to-central.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export GPG_TTY=$(tty)
1414
echo $GPG_SIGNING_KEY | base64 -d > signing.gpg
1515
gpg --batch --import signing.gpg
1616

17-
GPG_EXECUTABLE=gpg mvn $MVN_ARGS -DskipTests -s ./.azure/scripts/settings.xml -pl ./,crd-annotations,crd-generator,test,api,v1-api-conversion -P central deploy
17+
GPG_EXECUTABLE=gpg mvn $MVN_ARGS -DskipTests -s ./.azure/scripts/settings.xml -pl ./,crd-annotations,crd-generator,test,api,v1-api-conversion -P artifactory deploy
1818

1919
cleanup

.azure/scripts/settings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
22
<servers>
33
<server>
4-
<id>central</id>
5-
<username>${env.CENTRAL_USERNAME}</username>
6-
<password>${env.CENTRAL_PASSWORD}</password>
4+
<id>artifactory</id>
5+
<username>${env.ARTIFACTORY_USER}</username>
6+
<password>${env.JF_ACCESS_TOKEN}</password>
77
</server>
88
</servers>
99
</settings>

.github/actions/build/containers-push/action.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ inputs:
99
description: "Runner architecture (amd64, arm64)"
1010
required: false
1111
default: "amd64"
12-
quayUser:
12+
dockerUsername:
1313
description: "Quay.io username"
1414
required: true
15-
quayPass:
15+
dockerToken:
1616
description: "Quay.io password"
1717
required: true
1818
buildRunId:
@@ -67,9 +67,16 @@ runs:
6767
rm "containers-${arch}.tar"
6868
done
6969
70-
- name: Login to container registry
71-
shell: bash
72-
run: docker login -u ${{ inputs.quayUser }} -p ${{ inputs.quayPass }} ${{ env.DOCKER_REGISTRY }}
70+
- name: Login to Docker
71+
uses: docker/login-action@v3
72+
with:
73+
registry: registry.nordix.org
74+
username: ${{ inputs.dockerUsername }}
75+
password: ${{ inputs.dockerToken }}
76+
77+
# - name: Login to container registry
78+
# shell: bash
79+
# run: docker login -u ${{ inputs.dockerUsername }} -p ${{ inputs.dockerToken }} registry.nordix.org
7380

7481
- name: Delete existing container manifests
7582
shell: bash

.github/actions/build/deploy-java/action.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ inputs:
1212
gpgSigningKey:
1313
description: "GPG signing key"
1414
required: true
15-
centralUsername:
16-
description: "Maven Central username"
15+
artifactoryUsername:
16+
description: "Artifactory Username"
1717
required: true
18-
centralPassword:
19-
description: "Maven Central password"
18+
artifactoryAccessToken:
19+
description: "Artifactory Access Token"
2020
required: true
2121

2222
runs:
@@ -28,6 +28,12 @@ runs:
2828
java-version: '17'
2929
distribution: 'temurin'
3030

31+
- name: Setup JFrog CLI
32+
uses: jfrog/setup-jfrog-cli@v4
33+
env:
34+
JF_URL: https://artifactory.nordix.org/
35+
JF_ACCESS_TOKEN: ${{ inputs.artifactoryAccessToken }}
36+
3137
- name: Restore Maven cache
3238
uses: actions/cache/restore@v4
3339
with:
@@ -49,5 +55,5 @@ runs:
4955
BRANCH: ${{ github.ref }}
5056
GPG_PASSPHRASE: ${{ inputs.gpgPassphrase }}
5157
GPG_SIGNING_KEY: ${{ inputs.gpgSigningKey }}
52-
CENTRAL_USERNAME: ${{ inputs.centralUsername }}
53-
CENTRAL_PASSWORD: ${{ inputs.centralPassword }}
58+
ARTIFACTORY_USER: ${{ inputs.artifactoryUsername }}
59+
JF_ACCESS_TOKEN: ${{ inputs.artifactoryAccessToken }}

.github/actions/build/release-artifacts/action.yml

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ inputs:
1515
gpgSigningKey:
1616
description: "GPG signing key"
1717
required: true
18-
centralUsername:
19-
description: "Maven Central username"
20-
required: true
21-
centralPassword:
22-
description: "Maven Central password"
18+
artifactoryAccessToken:
19+
description: "Artifactory Access Token"
2320
required: true
2421

2522
runs:
@@ -61,39 +58,38 @@ runs:
6158
env:
6259
RELEASE_VERSION: ${{ inputs.releaseVersion }}
6360

64-
- name: Deploy Java artifacts to Maven Central
61+
- name: Deploy Java artifacts to Artifactory
6562
shell: bash
6663
run: make pushtocentral
6764
env:
6865
BUILD_REASON: "IndividualCI"
6966
BRANCH: ${{ github.ref }}
7067
GPG_PASSPHRASE: ${{ inputs.gpgPassphrase }}
7168
GPG_SIGNING_KEY: ${{ inputs.gpgSigningKey }}
72-
CENTRAL_USERNAME: ${{ inputs.centralUsername }}
73-
CENTRAL_PASSWORD: ${{ inputs.centralPassword }}
69+
JF_ACCESS_TOKEN: ${{ inputs.artifactoryAccessToken }}
7470

7571
- name: Create release archives
7672
shell: bash
7773
run: tar -cvpf release.tar ./*${{ inputs.releaseVersion }}*
7874

79-
- name: Upload release archives
80-
uses: actions/upload-artifact@v4
81-
with:
82-
name: release.tar
83-
path: release.tar
84-
85-
- name: Build documentation
86-
shell: bash
87-
run: make docu_html docu_htmlnoheader docu_pdf
88-
env:
89-
RELEASE_VERSION: ${{ inputs.releaseVersion }}
90-
91-
- name: Create documentation archive
92-
shell: bash
93-
run: tar -cvpf documentation.tar ./documentation/html ./documentation/htmlnoheader ./documentation/pdf
94-
95-
- name: Upload documentation
96-
uses: actions/upload-artifact@v4
97-
with:
98-
name: documentation.tar
99-
path: documentation.tar
75+
# - name: Upload release archives
76+
# uses: actions/upload-artifact@v4
77+
# with:
78+
# name: release.tar
79+
# path: release.tar
80+
#
81+
# - name: Build documentation
82+
# shell: bash
83+
# run: make docu_html docu_htmlnoheader docu_pdf
84+
# env:
85+
# RELEASE_VERSION: ${{ inputs.releaseVersion }}
86+
#
87+
# - name: Create documentation archive
88+
# shell: bash
89+
# run: tar -cvpf documentation.tar ./documentation/html ./documentation/htmlnoheader ./documentation/pdf
90+
#
91+
# - name: Upload documentation
92+
# uses: actions/upload-artifact@v4
93+
# with:
94+
# name: documentation.tar
95+
# path: documentation.tar

.github/tests/events/check-permissions/permissions_authorized.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"event_name": "pull_request",
33
"action": "opened",
4-
"actor": "frawless",
4+
"actor": "JvD-Ericsson",
55
"pull_request": {
66
"number": 123,
77
"title": "Test authorized user",
@@ -17,7 +17,7 @@
1717
"repository": {
1818
"name": "ci-playground",
1919
"owner": {
20-
"login": "frawless",
20+
"login": "JvD-Ericsson",
2121
"type": "User"
2222
}
2323
}

.github/workflows/build.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- "main"
77
- "release-*"
8+
- "allies-release*"
89
pull_request:
910
branches:
1011
- "*"
@@ -95,42 +96,42 @@ jobs:
9596
- test-strimzi
9697
- build-containers
9798
- build-docs
98-
if: ${{ github.ref == 'refs/heads/main' }}
99+
if: ${{ startsWith(github.ref, 'refs/heads/allies-release') }}
99100
runs-on: ubuntu-latest
100101
permissions:
101102
contents: read
102103
packages: write
103104
# Required for keyless signing with GitHub OIDC
104105
id-token: write
105106
env:
106-
DOCKER_REGISTRY: "quay.io"
107-
DOCKER_ORG: "strimzi"
107+
DOCKER_REGISTRY: "registry.nordix.org"
108+
DOCKER_ORG: "allies/strimzi"
108109
DOCKER_TAG: "latest"
109110
steps:
110111
- uses: actions/checkout@v5
111112
- uses: ./.github/actions/build/containers-push
112113
with:
113114
architectures: "amd64,arm64,ppc64le,s390x"
114115
runnerArch: "amd64"
115-
quayUser: ${{ secrets.QUAY_USER }}
116-
quayPass: ${{ secrets.QUAY_PASS }}
116+
dockerUsername: ${{ secrets.DOCKER_USERNAME }}
117+
dockerToken: ${{ secrets.DOCKER_TOKEN }}
117118

118-
# Publish Strimzi docs to the website - run only on main branch
119-
publish-docs:
120-
name: Publish Docs
121-
needs:
122-
- build-strimzi
123-
- test-strimzi
124-
- build-containers
125-
- build-docs
126-
if: ${{ github.ref == 'refs/heads/main' }}
127-
runs-on: ubuntu-latest
128-
steps:
129-
- uses: actions/checkout@v5
130-
- uses: ./.github/actions/build/publish-docs
131-
with:
132-
artifactName: "documentation.tar"
133-
websiteDeployKey: ${{ secrets.WEBSITE_DEPLOY_KEY }}
119+
# # Publish Strimzi docs to the website - run only on main branch
120+
# publish-docs:
121+
# name: Publish Docs
122+
# needs:
123+
# - build-strimzi
124+
# - test-strimzi
125+
# - build-containers
126+
# - build-docs
127+
# if: ${{ github.ref == 'refs/heads/main' }}
128+
# runs-on: ubuntu-latest
129+
# steps:
130+
# - uses: actions/checkout@v5
131+
# - uses: ./.github/actions/build/publish-docs
132+
# with:
133+
# artifactName: "documentation.tar"
134+
# websiteDeployKey: ${{ secrets.WEBSITE_DEPLOY_KEY }}
134135

135136
# Deploy Strimzi Java artifacts - run only on main branch
136137
deploy-java:
@@ -140,7 +141,7 @@ jobs:
140141
- test-strimzi
141142
- build-containers
142143
- build-docs
143-
if: ${{ github.ref == 'refs/heads/main' }}
144+
if: ${{ startsWith(github.ref, 'refs/heads/allies-release') }}
144145
runs-on: ubuntu-latest
145146
steps:
146147
- uses: actions/checkout@v5
@@ -149,5 +150,5 @@ jobs:
149150
runnerArch: "amd64"
150151
gpgPassphrase: ${{ secrets.GPG_PASSPHRASE }}
151152
gpgSigningKey: ${{ secrets.GPG_SIGNING_KEY }}
152-
centralUsername: ${{ secrets.CENTRAL_USERNAME }}
153-
centralPassword: ${{ secrets.CENTRAL_PASSWORD }}
153+
artifactoryUsername: ${{ secrets.ARTIFACTORY_USER }}
154+
artifactoryAccessToken: ${{ secrets.JF_ACCESS_TOKEN }}

.github/workflows/cve-rebuild.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ jobs:
9191
with:
9292
architectures: "amd64,arm64,ppc64le,s390x"
9393
runnerArch: "amd64"
94-
quayUser: ${{ secrets.QUAY_USER }}
95-
quayPass: ${{ secrets.QUAY_PASS }}
94+
dockerUsername: ${{ secrets.DOCKER_USERNAME }}
95+
dockerToken: ${{ secrets.DOCKER_TOKEN }}
9696

9797
# Manual validation step - waits for approval before pushing without suffix
9898
manual-validation:
@@ -131,5 +131,5 @@ jobs:
131131
with:
132132
architectures: "amd64,arm64,ppc64le,s390x"
133133
runnerArch: "amd64"
134-
quayUser: ${{ secrets.QUAY_USER }}
135-
quayPass: ${{ secrets.QUAY_PASS }}
134+
dockerUsername: ${{ secrets.DOCKER_USERNAME }}
135+
dockerToken: ${{ secrets.DOCKER_TOKEN }}

0 commit comments

Comments
 (0)