Skip to content

Commit 1c89b72

Browse files
authored
Merge pull request #73 from cloudgraphdev/beta
chore: update pipelines
2 parents 5b3979f + 47c653c commit 1c89b72

File tree

12 files changed

+802
-1177
lines changed

12 files changed

+802
-1177
lines changed

.github/workflows/homebrew.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: homebrew
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
homebrew:
@@ -35,7 +35,7 @@ jobs:
3535
[default]
3636
region=us-east-1
3737
output=json
38-
38+
3939
[profile cloudgraph-iac]
4040
role_arn = ${{ secrets.AWS_ROLE_ARN }}
4141
source_profile = default

.github/workflows/notify.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: notify
23

34
on:
@@ -9,14 +10,14 @@ jobs:
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v2
13+
- uses: actions/setup-node@v3
1314
with:
1415
node-version: 16
1516
- run: |
1617
GIT_COMMIT_TILE=$(git log -1 --pretty=format:"%s")
1718
curl -X POST --data-urlencode "payload={\"attachments\":[{\"fallback\":\"$GIT_AUTHOR_NAME released new $ORGANIZATION_NAME $REPO_NAME version of $GITHUB_REF_NAME\",\"color\":\"good\",\"title\":\"Version $GITHUB_REF_NAME of $ORGANIZATION_NAME $REPO_NAME released\",\"title_link\":\"$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/tag/$GITHUB_REF_NAME\",\"fields\":[{\"title\":\"Tag\",\"value\":\"<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/commits/$GITHUB_REF_NAME|$GITHUB_REF_NAME>\",\"short\":true},{\"title\":\"Commit\",\"value\":\"<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/tree/$GITHUB_REF_NAME|$GIT_COMMIT_TILE>\",\"short\":true}],\"footer\":\"$ORGANIZATION_NAME $REPO_NAME \",\"ts\":\"$( date +%s )\"}]}" $SLACK_WEBHOOK
1819
env:
1920
REPO_NAME: ${{ github.event.repository.name }}
20-
GIT_AUTHOR_NAME: 'AutoCloud Deploy Bot'
21+
GIT_AUTHOR_NAME: "AutoCloud Deploy Bot"
2122
SLACK_WEBHOOK: ${{secrets.slack_api_endpoint}}
22-
ORGANIZATION_NAME: ${{secrets.organization_name}}
23+
ORGANIZATION_NAME: ${{secrets.organization_name}}

.github/workflows/pr-validator.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1+
---
12
name: pr-validator
23

34
on:
45
pull_request:
56
types: [synchronize, opened, reopened, edited]
67
branches:
7-
- master
8+
- main
89
- beta
910

1011
jobs:
1112
pr-validation:
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v3
15-
- run : |
16-
if [ "$TARGET_BRANCH" == "master" ] && [ "$SOURCE_BRANCH" == "beta" ]; then
16+
- run: |
17+
if [ "$TARGET_BRANCH" == "main" ] && [ "$SOURCE_BRANCH" == "beta" ]; then
1718
echo "Merge from $SOURCE_BRANCH to $TARGET_BRANCH is valid"
1819
exit 0
1920
elif [ "$TARGET_BRANCH" == "beta" ] && [ "$SOURCE_BRANCH" == "alpha" ]; then
@@ -25,6 +26,4 @@ jobs:
2526
fi
2627
env:
2728
SOURCE_BRANCH: ${{ github.head_ref }}
28-
TARGET_BRANCH: ${{ github.base_ref }}
29-
30-
29+
TARGET_BRANCH: ${{ github.base_ref }}

.github/workflows/publish.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
1+
---
42
name: publish
53

6-
74
on:
85
push:
96
branches:
10-
- master
117
- alpha
128
- beta
9+
- main
1310

1411
jobs:
1512
build:
@@ -20,41 +17,43 @@ jobs:
2017
fetch-depth: 0
2118
persist-credentials: false
2219
token: ${{secrets.gh_token}}
23-
- uses: actions/setup-node@v2
20+
- uses: actions/setup-node@v3
2421
with:
2522
node-version: 16
26-
registry-url: 'https://registry.npmjs.org'
23+
registry-url: "https://registry.npmjs.org"
2724

2825
- name: Get cache directory
29-
id: npm-cache-dir
26+
id: yarn-cache-dir
3027
run: |
31-
echo "::set-output name=dir::$(npm config get cache)"
32-
28+
echo "::set-output name=dir::$(yarn cache dir)"
29+
3330
- name: Restoring cache
34-
uses: actions/cache@v2
35-
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
31+
uses: actions/cache@v3
32+
id: yarn-cache # use this to check for `cache-hit` ==> if: steps.yarn-cache.outputs.cache-hit != 'true'
3633
with:
37-
path: ${{ steps.npm-cache-dir.outputs.dir }}
34+
path: ${{ steps.yarn-cache-dir.outputs.dir }}
3835
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
3936
restore-keys: |
4037
${{ runner.os }}-yarn-
4138
4239
- name: Install Packages
43-
run: yarn install --frozen-lockfile --cache-folder .npm --prefer-offline
40+
# NOTE: The --ignore-scripts flag is required to prevent leakage of NPM_TOKEN value
41+
# See https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages
42+
run: yarn install --frozen-lockfile --prefer-offline --ignore-scripts
4443

4544
- name: Build
4645
run: yarn prepack
4746

48-
- name: Test
49-
run: yarn lint
47+
# - name: Test
48+
# run: yarn lint
5049

51-
- name: Publish
52-
run: npx semantic-release -r $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
50+
- name: Publish
51+
run: npx semantic-release
5352
env:
53+
NODE_ENV: "cicd"
5454
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
5555
GITHUB_TOKEN: ${{secrets.gh_token}}
56-
GIT_AUTHOR_NAME: 'autocloud-deploy-bot'
57-
GIT_AUTHOR_EMAIL: 'no-reply@autocloud.dev'
58-
GIT_COMMITTER_NAME: 'autocloud-deploy-bot'
59-
GIT_COMMITTER_EMAIL: 'no-reply@autocloud.dev'
60-
NODE_ENV: 'cicd'
56+
GIT_AUTHOR_NAME: "autocloud-deploy-bot"
57+
GIT_AUTHOR_EMAIL: "no-reply@autocloud.dev"
58+
GIT_COMMITTER_NAME: "autocloud-deploy-bot"
59+
GIT_COMMITTER_EMAIL: "no-reply@autocloud.dev"

.gitlab-ci.yml

Lines changed: 0 additions & 175 deletions
This file was deleted.

.releaserc.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
branches:
3-
- name: master
4-
channel: latest
5-
- name: beta
6-
channel: beta
7-
prerelease: true
83
- name: alpha
94
channel: alpha
105
prerelease: true
6+
- name: beta
7+
channel: beta
8+
prerelease: true
9+
- name: main
10+
1111
plugins:
1212
- "@semantic-release/commit-analyzer"
1313
- "@semantic-release/release-notes-generator"

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## [0.21.3-beta.1](https://github.com/cloudgraphdev/cli/compare/0.21.2...0.21.3-beta.1) (2022-04-06)
2+
3+
4+
### Bug Fixes
5+
6+
* Handle add policy without a cg config file ([4813b16](https://github.com/cloudgraphdev/cli/commit/4813b1605717e30fcfa6689f044b74e029fe0427))
7+
8+
## [0.21.3-alpha.1](https://github.com/cloudgraphdev/cli/compare/0.21.2...0.21.3-alpha.1) (2022-04-06)
9+
10+
11+
### Bug Fixes
12+
13+
* Handle add policy without a cg config file ([4813b16](https://github.com/cloudgraphdev/cli/commit/4813b1605717e30fcfa6689f044b74e029fe0427))
14+
115
## [0.21.2](https://github.com/cloudgraphdev/cli/compare/0.21.1...0.21.2) (2022-03-23)
216

317

0 commit comments

Comments
 (0)