@@ -4,6 +4,7 @@ name: Package Agent
4
4
branches :
5
5
- master
6
6
- release
7
+ - qqq
7
8
permissions :
8
9
id-token : write # This is required for requesting the JWT
9
10
contents : write # This is required for actions/checkout
@@ -94,53 +95,53 @@ jobs:
94
95
path : |
95
96
bin/cli-macos-x64
96
97
bin/start.sh
97
- deploy :
98
- name : Deploy staging cloud agent
99
- environment : staging
100
- needs : build
101
- strategy :
102
- matrix :
103
- node-version :
104
- - 10.x
105
- runs-on : ubuntu-latest
106
- steps :
107
- - name : Checkout code
108
-
109
- - name : Setup Node.js ${{ matrix.node-version }}
110
-
111
- with :
112
- node-version : ${{ matrix.node-version }}
113
- - name : Install packages
114
- run : npm install --only dev
115
- - name : Configure AWS credentials
116
- uses : aws-actions/configure-aws-credentials@v2
117
- with :
118
- role-to-assume : arn:aws:iam::${{ vars.AWS_ACCOUNT_ID }}:role/katalon-github-oidc-federation
119
- role-session-name : github-actions
120
- aws-region : ${{ vars.AWS_REGION }}
121
- mask-aws-account-id : ' no'
122
- - name : Download artifacts
123
- uses : actions/download-artifact@v2
124
- with :
125
- path : .
126
- - name : Add execute permission to downloaded artifacts
127
- run : chmod +x katalon-agent-linux-*/* katalon-agent-macos-*/*
128
- - name : Set BUILD_VERSION environment variable
129
- run : echo "BUILD_VERSION=$(node -p "require('./package').version")" >> $GITHUB_ENV
130
- - name : Package artifacts
131
- env :
132
- GZIP : -9
133
- run : |
134
- set -x
135
- mkdir -p packages
136
- ls -la
137
- cp katalon-agent-linux-x64-$BUILD_VERSION/cli-linux-x64 packages/cli-linux-x64
138
- zip -9 -j packages/katalon-agent-win-x64-$BUILD_VERSION.zip katalon-agent-win-x64-$BUILD_VERSION/*
139
- zip -9 -j packages/katalon-agent-win-x86-$BUILD_VERSION.zip katalon-agent-win-x86-$BUILD_VERSION/*
140
- zip -9 -j packages/katalon-agent-linux-x64-$BUILD_VERSION.zip katalon-agent-linux-x64-$BUILD_VERSION/*
141
- zip -9 -j packages/katalon-agent-macos-x64-$BUILD_VERSION.zip katalon-agent-macos-x64-$BUILD_VERSION/*
142
- cd katalon-agent-linux-x64-$BUILD_VERSION
143
- tar cvzf ../packages/katalon-agent-linux-x64-$BUILD_VERSION.tar.gz *
144
- cd ..
145
- ls -laR
146
- aws s3 sync packages/ s3://katalon-testops-agent-beta/$BUILD_VERSION --acl public-read
98
+ # deploy:
99
+ # name: Deploy staging cloud agent
100
+ # environment: staging
101
+ # needs: build
102
+ # strategy:
103
+ # matrix:
104
+ # node-version:
105
+ # - 10.x
106
+ # runs-on: ubuntu-latest
107
+ # steps:
108
+ # - name: Checkout code
109
+
110
+ # - name: Setup Node.js ${{ matrix.node-version }}
111
+
112
+ # with:
113
+ # node-version: ${{ matrix.node-version }}
114
+ # - name: Install packages
115
+ # run: npm install --only dev
116
+ # - name: Configure AWS credentials
117
+ # uses: aws-actions/configure-aws-credentials@v2
118
+ # with:
119
+ # role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT_ID }}:role/katalon-github-oidc-federation
120
+ # role-session-name: github-actions
121
+ # aws-region: ${{ vars.AWS_REGION }}
122
+ # mask-aws-account-id: 'no'
123
+ # - name: Download artifacts
124
+ # uses: actions/download-artifact@v2
125
+ # with:
126
+ # path: .
127
+ # - name: Add execute permission to downloaded artifacts
128
+ # run: chmod +x katalon-agent-linux-*/* katalon-agent-macos-*/*
129
+ # - name: Set BUILD_VERSION environment variable
130
+ # run: echo "BUILD_VERSION=$(node -p "require('./package').version")" >> $GITHUB_ENV
131
+ # - name: Package artifacts
132
+ # env:
133
+ # GZIP: -9
134
+ # run: |
135
+ # set -x
136
+ # mkdir -p packages
137
+ # ls -la
138
+ # cp katalon-agent-linux-x64-$BUILD_VERSION/cli-linux-x64 packages/cli-linux-x64
139
+ # zip -9 -j packages/katalon-agent-win-x64-$BUILD_VERSION.zip katalon-agent-win-x64-$BUILD_VERSION/*
140
+ # zip -9 -j packages/katalon-agent-win-x86-$BUILD_VERSION.zip katalon-agent-win-x86-$BUILD_VERSION/*
141
+ # zip -9 -j packages/katalon-agent-linux-x64-$BUILD_VERSION.zip katalon-agent-linux-x64-$BUILD_VERSION/*
142
+ # zip -9 -j packages/katalon-agent-macos-x64-$BUILD_VERSION.zip katalon-agent-macos-x64-$BUILD_VERSION/*
143
+ # cd katalon-agent-linux-x64-$BUILD_VERSION
144
+ # tar cvzf ../packages/katalon-agent-linux-x64-$BUILD_VERSION.tar.gz *
145
+ # cd ..
146
+ # ls -laR
147
+ # aws s3 sync packages/ s3://katalon-testops-agent-beta/$BUILD_VERSION --acl public-read
0 commit comments