From 89fdf533c4952035df3369e5e610c9db0b780be5 Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Mon, 11 Apr 2022 19:11:08 +0000 Subject: [PATCH 1/2] Add contributing file (#110) Signed-off-by: 1000TurquoisePogs --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..ef801ae --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,5 @@ +Contributing +============ + +Contributions are encouraged from anyone! Every little bit helps, and credit will always be given. +Please see the contributing guidelines in [the zlux repository](https://github.com/zowe/zlux/blob/master/CONTRIBUTING.md) From b16b119d70129cfab93c8aabbcee29fc5c29ce1e Mon Sep 17 00:00:00 2001 From: James Struga Date: Tue, 12 Apr 2022 09:44:23 -0400 Subject: [PATCH 2/2] add v2 workflow for rc build (#106) * debug jenkins vs actions Signed-off-by: James Struga * debug Signed-off-by: James Struga * add yaml Signed-off-by: James Struga * updated npm version Signed-off-by: James Struga Co-authored-by: 1000TurquoisePogs --- .github/workflows/build-core.yml | 2 +- .github/workflows/rc-build.yml | 68 ++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/rc-build.yml diff --git a/.github/workflows/build-core.yml b/.github/workflows/build-core.yml index 1e88b6a..6b015f5 100644 --- a/.github/workflows/build-core.yml +++ b/.github/workflows/build-core.yml @@ -64,7 +64,7 @@ jobs: - name: '[Prep 2] Setup Node' uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 16 - name: '[Prep 3] Setup jFrog CLI' uses: jfrog/setup-jfrog-cli@v2 diff --git a/.github/workflows/rc-build.yml b/.github/workflows/rc-build.yml new file mode 100644 index 0000000..5d8609d --- /dev/null +++ b/.github/workflows/rc-build.yml @@ -0,0 +1,68 @@ +name: Release Core +on: + workflow_dispatch: + inputs: + ZOWE_VERSION: + description: 'Please enter the Zowe version you want to build' + required: true + +jobs: + check-permission: + runs-on: ubuntu-latest + steps: + # this action will fail the whole workflow if permission check fails + - name: check permission + uses: zowe-actions/shared-actions/permission-check@main + with: + user: ${{ github.actor }} + github-repo: ${{ github.repository }} + github-token: ${{ secrets.GITHUB_TOKEN }} + + build: + runs-on: ubuntu-latest + needs: check-permission + steps: + + - name: '[Prep 1] Cache node modules' + uses: actions/cache@v2 + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: | + ~/.npm + ~/.nvm/.cache + ~/.nvm/versions + key: ${{ runner.os }}-build-cache-node-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-cache-node-modules- + + - name: '[Prep 2] Setup Node' + uses: actions/setup-node@v2 + with: + node-version: 16 + + - name: '[Prep 3] Setup jFrog CLI' + uses: jfrog/setup-jfrog-cli@v2 + env: + JF_ARTIFACTORY_1: ${{ secrets.JF_ARTIFACTORY_TOKEN }} + + - name: '[Prep 4] prepare workflow' + uses: zowe-actions/zlux-builds/core/prepare@v2.x/rc + with: + github-user: ${{ secrets.ZOWE_ROBOT_USER }} + github-password: ${{ secrets.ZOWE_ROBOT_TOKEN }} + github-email: ${{ secrets.ZOWE_ROBOT_EMAIL }} + github-branch: ${{ github.event.inputs.BRANCH_NAME }} + zowe-version: ${{ github.event.inputs.ZOWE_VERSION }} + + - name: '[Prep 5] build' + uses: zowe-actions/zlux-builds/core/build@v2.x/rc + + - name: '[Prep 6] packaging' + uses: zowe-actions/zlux-builds/core/package@v2.x/rc + with: + pax-ssh-username: ${{ secrets.SSH_MARIST_USERNAME }} + pax-ssh-password: ${{ secrets.SSH_MARIST_RACF_PASSWORD }} + pax-name: zlux-core + + - name: '[Prep 7] deploy' + uses: zowe-actions/zlux-builds/core/deploy@v2.x/rc