Skip to content

Commit

Permalink
ci: fix aws-cli version [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
phiz71 committed Jan 16, 2025
1 parent 870dff2 commit 30620c9
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 12 deletions.
7 changes: 5 additions & 2 deletions .circleci/ci/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const aqua = {

const artifactoryUrl = 'https://odbxikk7vo-artifactory.services.clever-cloud.com';

const awsCliVersion = '2.22.35';

const cache = {
prefix: 'gravitee-api-management-v10',
};
Expand Down Expand Up @@ -86,8 +88,8 @@ const maven = {
const orbs = {
aquasec: '1.0.4',
artifactory: '1.0.1',
awsCli: '2.0.6',
awsS3: '3.0.0',
awsCli: '5.1.2',
awsS3: '4.1.0',
github: '1.0.5',
gravitee: 'dev:4.5.0',
helm: '3.0.0',
Expand Down Expand Up @@ -146,6 +148,7 @@ const docker = {
export const config = {
aqua,
artifactoryUrl,
awsCliVersion,
cache,
dockerImages,
executor,
Expand Down
6 changes: 6 additions & 0 deletions .circleci/ci/src/jobs/job-package-bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { orbs } from '../orbs';
import { config } from '../config';
import { ReusedCommand } from '@circleci/circleci-config-sdk/dist/src/lib/Components/Commands/exports/Reusable';
import { keeper } from '../orbs/keeper';
import { awsCli } from '../orbs/aws-cli';
import { awsS3 } from '../orbs/aws-s3';
import { GraviteeioVersion, parse } from '../utils';

Expand All @@ -28,6 +29,7 @@ export class PackageBundleJob {
public static create(dynamicConfig: Config, graviteeioVersion: string, isDryRun: boolean) {
dynamicConfig.importOrb(keeper);
dynamicConfig.importOrb(awsS3);
dynamicConfig.importOrb(awsCli);

const parsedGraviteeioVersion = parse(graviteeioVersion);

Expand Down Expand Up @@ -66,6 +68,10 @@ export class PackageBundleJob {
'secret-url': config.secrets.awsSecretAccessKey,
'var-name': 'AWS_SECRET_ACCESS_KEY',
}),
new reusable.ReusedCommand(orbs.awsCli.commands.setup, {
region: 'cloudfront',
version: `${config.awsCliVersion}`,
}),
PackageBundleJob.getSyncCommand(parsedGraviteeioVersion, isDryRun),
]);
}
Expand Down
10 changes: 8 additions & 2 deletions .circleci/ci/src/orbs/aws-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { orb } from '@circleci/circleci-config-sdk';
import { orb, parameters } from '@circleci/circleci-config-sdk';
import { config } from '../config';

export const awsCli = new orb.OrbImport('aws-cli', 'circleci', 'aws-cli', config.orbs.awsCli);
export const awsCli = new orb.OrbImport('aws-cli', 'circleci', 'aws-cli', config.orbs.awsCli, undefined, {
jobs: {},
executors: {},
commands: {
setup: new parameters.CustomParametersList(),
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ jobs:
- keeper/env-export:
secret-url: keeper://3-pU56sIqcyWWw7HxhxjaQ/field/password
var-name: AWS_SECRET_ACCESS_KEY
- aws-cli/setup:
region: cloudfront
version: 2.22.35
- aws-s3/sync:
arguments: --endpoint-url https://cellar-c2.services.clever-cloud.com --acl public-read
from: ./release/.tmp/4.2.0-alpha.1/dist
Expand Down Expand Up @@ -718,6 +721,7 @@ orbs:
slack: circleci/[email protected]
aquasec: gravitee-io/[email protected]
artifactory-orb: jfrog/[email protected]
aws-s3: circleci/[email protected]
aws-s3: circleci/[email protected]
aws-cli: circleci/[email protected]
helm: circleci/[email protected]
gh: circleci/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ jobs:
- keeper/env-export:
secret-url: keeper://3-pU56sIqcyWWw7HxhxjaQ/field/password
var-name: AWS_SECRET_ACCESS_KEY
- aws-cli/setup:
region: cloudfront
version: 2.22.35
- aws-s3/sync:
arguments: --endpoint-url https://cellar-c2.services.clever-cloud.com --acl public-read
from: ./release/.tmp/4.2.0/dist
Expand Down Expand Up @@ -708,6 +711,7 @@ orbs:
slack: circleci/[email protected]
aquasec: gravitee-io/[email protected]
artifactory-orb: jfrog/[email protected]
aws-s3: circleci/[email protected]
aws-s3: circleci/[email protected]
aws-cli: circleci/[email protected]
helm: circleci/[email protected]
gh: circleci/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ jobs:
- keeper/env-export:
secret-url: keeper://3-pU56sIqcyWWw7HxhxjaQ/field/password
var-name: AWS_SECRET_ACCESS_KEY
- aws-cli/setup:
region: cloudfront
version: 2.22.35
- aws-s3/sync:
arguments: --endpoint-url https://cellar-c2.services.clever-cloud.com --acl public-read
from: ./release/.tmp/4.2.0/dist
Expand Down Expand Up @@ -720,6 +723,7 @@ orbs:
slack: circleci/[email protected]
aquasec: gravitee-io/[email protected]
artifactory-orb: jfrog/[email protected]
aws-s3: circleci/[email protected]
aws-s3: circleci/[email protected]
aws-cli: circleci/[email protected]
helm: circleci/[email protected]
gh: circleci/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ jobs:
- keeper/env-export:
secret-url: keeper://3-pU56sIqcyWWw7HxhxjaQ/field/password
var-name: AWS_SECRET_ACCESS_KEY
- aws-cli/setup:
region: cloudfront
version: 2.22.35
- aws-s3/sync:
arguments: --endpoint-url https://cellar-c2.services.clever-cloud.com --acl public-read
from: ./release/.tmp/4.2.0/dist
Expand Down Expand Up @@ -720,6 +723,7 @@ orbs:
slack: circleci/[email protected]
aquasec: gravitee-io/[email protected]
artifactory-orb: jfrog/[email protected]
aws-s3: circleci/[email protected]
aws-s3: circleci/[email protected]
aws-cli: circleci/[email protected]
helm: circleci/[email protected]
gh: circleci/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- keeper/env-export:
secret-url: keeper://3-pU56sIqcyWWw7HxhxjaQ/field/password
var-name: AWS_SECRET_ACCESS_KEY
- aws-cli/setup:
region: cloudfront
version: 2.22.35
- aws-s3/sync:
arguments: --endpoint-url https://cellar-c2.services.clever-cloud.com --acl public-read
from: ./release/.tmp/4.1.0-alpha.1/dist
Expand All @@ -69,4 +72,5 @@ workflows:
- cicd-orchestrator
orbs:
keeper: gravitee-io/[email protected]
aws-s3: circleci/[email protected]
aws-s3: circleci/[email protected]
aws-cli: circleci/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- keeper/env-export:
secret-url: keeper://3-pU56sIqcyWWw7HxhxjaQ/field/password
var-name: AWS_SECRET_ACCESS_KEY
- aws-cli/setup:
region: cloudfront
version: 2.22.35
- aws-s3/sync:
arguments: --endpoint-url https://cellar-c2.services.clever-cloud.com --acl public-read
from: ./release/.tmp/4.1.0-alpha.1/dist
Expand All @@ -69,4 +72,5 @@ workflows:
- cicd-orchestrator
orbs:
keeper: gravitee-io/[email protected]
aws-s3: circleci/[email protected]
aws-s3: circleci/[email protected]
aws-cli: circleci/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- keeper/env-export:
secret-url: keeper://3-pU56sIqcyWWw7HxhxjaQ/field/password
var-name: AWS_SECRET_ACCESS_KEY
- aws-cli/setup:
region: cloudfront
version: 2.22.35
- aws-s3/sync:
arguments: --endpoint-url https://cellar-c2.services.clever-cloud.com --acl public-read
from: ./release/.tmp/4.1.0/dist
Expand All @@ -69,4 +72,5 @@ workflows:
- cicd-orchestrator
orbs:
keeper: gravitee-io/[email protected]
aws-s3: circleci/[email protected]
aws-s3: circleci/[email protected]
aws-cli: circleci/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- keeper/env-export:
secret-url: keeper://3-pU56sIqcyWWw7HxhxjaQ/field/password
var-name: AWS_SECRET_ACCESS_KEY
- aws-cli/setup:
region: cloudfront
version: 2.22.35
- aws-s3/sync:
arguments: --endpoint-url https://cellar-c2.services.clever-cloud.com --acl public-read
from: ./release/.tmp/4.1.0/dist
Expand All @@ -69,4 +72,5 @@ workflows:
- cicd-orchestrator
orbs:
keeper: gravitee-io/[email protected]
aws-s3: circleci/[email protected]
aws-s3: circleci/[email protected]
aws-cli: circleci/[email protected]

0 comments on commit 30620c9

Please sign in to comment.