mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-30 04:28:19 +02:00
[DEVOPS-996] - Refactor Web build workflow (#3558)
This commit is contained in:
parent
684eb7adf3
commit
9bf3afb8de
225
.github/workflows/build-web.yml
vendored
225
.github/workflows/build-web.yml
vendored
@ -34,7 +34,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
cloc:
|
cloc:
|
||||||
name: CLOC
|
name: CLOC
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
||||||
@ -51,7 +51,7 @@ jobs:
|
|||||||
|
|
||||||
setup:
|
setup:
|
||||||
name: Setup
|
name: Setup
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.version.outputs.value }}
|
version: ${{ steps.version.outputs.value }}
|
||||||
steps:
|
steps:
|
||||||
@ -62,20 +62,31 @@ jobs:
|
|||||||
id: version
|
id: version
|
||||||
run: echo "::set-output name=value::${GITHUB_SHA:0:7}"
|
run: echo "::set-output name=value::${GITHUB_SHA:0:7}"
|
||||||
|
|
||||||
|
build-artifacts:
|
||||||
build-oss-selfhost:
|
name: Build artifacts
|
||||||
name: Build OSS zip
|
runs-on: ubuntu-22.04
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
env:
|
env:
|
||||||
_VERSION: ${{ needs.setup.outputs.version }}
|
_VERSION: ${{ needs.setup.outputs.version }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: "selfhosted-open-source"
|
||||||
|
npm_command: "dist:oss:selfhost"
|
||||||
|
- name: "cloud-COMMERCIAL"
|
||||||
|
npm_command: "dist:bit:cloud"
|
||||||
|
- name: "selfhosted-COMMERCIAL"
|
||||||
|
npm_command: "dist:bit:selfhost"
|
||||||
|
- name: "cloud-QA"
|
||||||
|
npm_command: "build:bit:qa"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
||||||
|
|
||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
|
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
|
||||||
with:
|
with:
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
cache-dependency-path: '**/package-lock.json'
|
cache-dependency-path: '**/package-lock.json'
|
||||||
@ -94,127 +105,61 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Build OSS selfhost
|
- name: Setup QA metadata
|
||||||
working-directory: apps/web
|
working-directory: apps/web
|
||||||
|
if: matrix.name == 'cloud-QA'
|
||||||
run: |
|
run: |
|
||||||
npm run dist:oss:selfhost
|
VERSION=$( jq -r ".version" package.json)
|
||||||
zip -r web-$_VERSION-selfhosted-open-source.zip build
|
jq --arg version "$VERSION - ${GITHUB_SHA:0:7}" '.version = $version' package.json > package.json.tmp
|
||||||
|
mv package.json.tmp package.json
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Build ${{ matrix.name }}
|
||||||
|
working-directory: apps/web
|
||||||
|
run: npm run ${{ matrix.npm_command }}
|
||||||
|
|
||||||
|
- name: Package ${{ matrix.name }} artifact
|
||||||
|
working-directory: apps/web
|
||||||
|
run: zip -r web-$_VERSION-${{ matrix.name }}.zip build
|
||||||
|
|
||||||
|
- name: Upload ${{ matrix.name }} artifact
|
||||||
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
|
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
|
||||||
with:
|
with:
|
||||||
name: web-${{ env._VERSION }}-selfhosted-open-source.zip
|
name: web-${{ env._VERSION }}-${{ matrix.name }}.zip
|
||||||
path: apps/web/web-${{ env._VERSION }}-selfhosted-open-source.zip
|
path: apps/web/web-${{ env._VERSION }}-${{ matrix.name }}.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
build-commercial-selfhost-image:
|
||||||
build-cloud:
|
name: Build self-host docker image
|
||||||
name: Build Cloud zip
|
runs-on: ubuntu-22.04
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
|
- build-artifacts
|
||||||
env:
|
env:
|
||||||
_VERSION: ${{ needs.setup.outputs.version }}
|
_VERSION: ${{ needs.setup.outputs.version }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
||||||
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
|
|
||||||
with:
|
|
||||||
cache: 'npm'
|
|
||||||
cache-dependency-path: '**/package-lock.json'
|
|
||||||
node-version: "16"
|
|
||||||
|
|
||||||
- name: Print environment
|
|
||||||
run: |
|
|
||||||
whoami
|
|
||||||
node --version
|
|
||||||
npm --version
|
|
||||||
gulp --version
|
|
||||||
docker --version
|
|
||||||
echo "GitHub ref: $GITHUB_REF"
|
|
||||||
echo "GitHub event: $GITHUB_EVENT"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Build Cloud
|
|
||||||
working-directory: apps/web
|
|
||||||
run: |
|
|
||||||
npm run dist:bit:cloud
|
|
||||||
zip -r web-$_VERSION-cloud-COMMERCIAL.zip build
|
|
||||||
|
|
||||||
- name: Upload build artifact
|
|
||||||
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
|
|
||||||
with:
|
|
||||||
name: web-${{ env._VERSION }}-cloud-COMMERCIAL.zip
|
|
||||||
path: apps/web/web-${{ env._VERSION }}-cloud-COMMERCIAL.zip
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
|
|
||||||
build-commercial-selfhost:
|
|
||||||
name: Build SelfHost Docker image
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
needs:
|
|
||||||
- setup
|
|
||||||
env:
|
|
||||||
_VERSION: ${{ needs.setup.outputs.version }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout repo
|
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
|
||||||
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
|
|
||||||
with:
|
|
||||||
cache: 'npm'
|
|
||||||
cache-dependency-path: '**/package-lock.json'
|
|
||||||
node-version: "16"
|
|
||||||
|
|
||||||
- name: Print environment
|
|
||||||
run: |
|
|
||||||
whoami
|
|
||||||
node --version
|
|
||||||
npm --version
|
|
||||||
gulp --version
|
|
||||||
docker --version
|
|
||||||
echo "GitHub ref: $GITHUB_REF"
|
|
||||||
echo "GitHub event: $GITHUB_EVENT"
|
|
||||||
|
|
||||||
- name: Setup DCT
|
- name: Setup DCT
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc-web'
|
if: github.ref == 'refs/heads/master' ||
|
||||||
|
github.ref == 'refs/heads/rc' ||
|
||||||
|
github.ref == 'refs/heads/hotfix-rc-web'
|
||||||
id: setup-dct
|
id: setup-dct
|
||||||
uses: bitwarden/gh-actions/setup-docker-trust@a8c384a05a974c05c48374c818b004be221d43ff
|
uses: bitwarden/gh-actions/setup-docker-trust@a8c384a05a974c05c48374c818b004be221d43ff
|
||||||
with:
|
with:
|
||||||
azure-creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
|
azure-creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
|
||||||
azure-keyvault-name: "bitwarden-prod-kv"
|
azure-keyvault-name: "bitwarden-prod-kv"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Download selfhosted-COMMERCIAL artifact
|
||||||
run: npm ci
|
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
|
||||||
|
|
||||||
- name: Build
|
|
||||||
working-directory: apps/web
|
|
||||||
run: |
|
|
||||||
echo -e "# Building Web\n"
|
|
||||||
echo "Building app"
|
|
||||||
echo "npm version $(npm --version)"
|
|
||||||
|
|
||||||
npm run dist:bit:selfhost
|
|
||||||
zip -r web-$_VERSION-selfhosted-COMMERCIAL.zip build
|
|
||||||
|
|
||||||
- name: Upload build artifact
|
|
||||||
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
|
|
||||||
with:
|
with:
|
||||||
name: web-${{ env._VERSION }}-selfhosted-COMMERCIAL.zip
|
name: web-${{ env._VERSION }}-selfhosted-COMMERCIAL.zip
|
||||||
path: apps/web/web-${{ env._VERSION }}-selfhosted-COMMERCIAL.zip
|
path: apps/web/build
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
working-directory: apps/web
|
working-directory: apps/web
|
||||||
run: |
|
run: docker build -t bitwarden/web .
|
||||||
echo -e "\nBuilding Docker image"
|
|
||||||
docker --version
|
|
||||||
docker build -t bitwarden/web .
|
|
||||||
|
|
||||||
- name: Tag rc branch
|
- name: Tag rc branch
|
||||||
if: github.ref == 'refs/heads/rc'
|
if: github.ref == 'refs/heads/rc'
|
||||||
@ -229,7 +174,9 @@ jobs:
|
|||||||
run: docker tag bitwarden/web bitwarden/web:hotfix-rc-web
|
run: docker tag bitwarden/web bitwarden/web:hotfix-rc-web
|
||||||
|
|
||||||
- name: List Docker images
|
- name: List Docker images
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc-web'
|
if: github.ref == 'refs/heads/master' ||
|
||||||
|
github.ref == 'refs/heads/rc' ||
|
||||||
|
github.ref == 'refs/heads/hotfix-rc-web'
|
||||||
run: docker images
|
run: docker images
|
||||||
|
|
||||||
- name: Push rc image
|
- name: Push rc image
|
||||||
@ -254,7 +201,9 @@ jobs:
|
|||||||
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ steps.setup-dct.outputs.dct-delegate-repo-passphrase }}
|
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ steps.setup-dct.outputs.dct-delegate-repo-passphrase }}
|
||||||
|
|
||||||
- name: Log out of Docker
|
- name: Log out of Docker
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc-web'
|
if: github.ref == 'refs/heads/master' ||
|
||||||
|
github.ref == 'refs/heads/rc' ||
|
||||||
|
github.ref == 'refs/heads/hotfix-rc-web'
|
||||||
run: |
|
run: |
|
||||||
docker logout
|
docker logout
|
||||||
echo "DOCKER_CONTENT_TRUST=0" >> $GITHUB_ENV
|
echo "DOCKER_CONTENT_TRUST=0" >> $GITHUB_ENV
|
||||||
@ -289,33 +238,18 @@ jobs:
|
|||||||
- name: Log out of Docker
|
- name: Log out of Docker
|
||||||
run: docker logout
|
run: docker logout
|
||||||
|
|
||||||
|
|
||||||
build-qa:
|
build-qa:
|
||||||
name: Build Docker images for QA environment
|
name: Build Docker images for QA environment
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
|
- build-artifacts
|
||||||
|
env:
|
||||||
|
_VERSION: ${{ needs.setup.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
||||||
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
|
|
||||||
with:
|
|
||||||
cache: 'npm'
|
|
||||||
cache-dependency-path: '**/package-lock.json'
|
|
||||||
node-version: "16"
|
|
||||||
|
|
||||||
- name: Print environment
|
|
||||||
run: |
|
|
||||||
whoami
|
|
||||||
node --version
|
|
||||||
npm --version
|
|
||||||
gulp --version
|
|
||||||
docker --version
|
|
||||||
echo "GitHub ref: $GITHUB_REF"
|
|
||||||
echo "GitHub event: $GITHUB_EVENT"
|
|
||||||
|
|
||||||
- name: Login to Azure
|
- name: Login to Azure
|
||||||
uses: Azure/login@ec3c14589bd3e9312b3cc8c41e6860e258df9010 # v1.1
|
uses: Azure/login@ec3c14589bd3e9312b3cc8c41e6860e258df9010 # v1.1
|
||||||
with:
|
with:
|
||||||
@ -324,24 +258,15 @@ jobs:
|
|||||||
- name: Log into container registry
|
- name: Log into container registry
|
||||||
run: az acr login -n bitwardenqa
|
run: az acr login -n bitwardenqa
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Download cloud-QA artifact
|
||||||
run: npm ci
|
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
|
||||||
|
with:
|
||||||
|
name: web-${{ env._VERSION }}-cloud-QA.zip
|
||||||
|
path: apps/web/build
|
||||||
|
|
||||||
- name: Build
|
- name: Build Docker image
|
||||||
working-directory: apps/web
|
working-directory: apps/web
|
||||||
run: |
|
run: |
|
||||||
echo -e "# Building Web\n"
|
|
||||||
echo "Building app"
|
|
||||||
echo "npm version $(npm --version)"
|
|
||||||
VERSION=$( jq -r ".version" package.json)
|
|
||||||
jq --arg version "$VERSION - ${GITHUB_SHA:0:7}" '.version = $version' package.json > package.json.tmp
|
|
||||||
mv package.json.tmp package.json
|
|
||||||
|
|
||||||
npm run build:bit:qa
|
|
||||||
|
|
||||||
echo "{\"commit_hash\": \"$GITHUB_SHA\", \"ref\": \"$GITHUB_REF\"}" | jq . > build/info.json
|
|
||||||
|
|
||||||
echo -e "\nBuilding Docker image"
|
|
||||||
docker --version
|
docker --version
|
||||||
docker build -t bitwardenqa.azurecr.io/web .
|
docker build -t bitwardenqa.azurecr.io/web .
|
||||||
|
|
||||||
@ -371,9 +296,6 @@ jobs:
|
|||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: docker tag bitwardenqa.azurecr.io/web bitwardenqa.azurecr.io/web:dev
|
run: docker tag bitwardenqa.azurecr.io/web bitwardenqa.azurecr.io/web:dev
|
||||||
|
|
||||||
- name: List Docker images
|
|
||||||
run: docker images
|
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
env:
|
env:
|
||||||
IMAGE_TAG: ${{ steps.image-tag.outputs.value }}
|
IMAGE_TAG: ${{ steps.image-tag.outputs.value }}
|
||||||
@ -391,11 +313,8 @@ jobs:
|
|||||||
name: Crowdin Push
|
name: Crowdin Push
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
needs:
|
needs:
|
||||||
- build-oss-selfhost
|
- build-artifacts
|
||||||
- build-cloud
|
runs-on: ubuntu-22.04
|
||||||
- build-commercial-selfhost
|
|
||||||
- build-qa
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 # v2.3.4
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 # v2.3.4
|
||||||
@ -435,13 +354,11 @@ jobs:
|
|||||||
check-failures:
|
check-failures:
|
||||||
name: Check for failures
|
name: Check for failures
|
||||||
if: always()
|
if: always()
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
needs:
|
needs:
|
||||||
- cloc
|
- cloc
|
||||||
- setup
|
- setup
|
||||||
- build-oss-selfhost
|
- build-artifacts
|
||||||
- build-cloud
|
|
||||||
- build-commercial-selfhost
|
|
||||||
- build-qa
|
- build-qa
|
||||||
- crowdin-push
|
- crowdin-push
|
||||||
steps:
|
steps:
|
||||||
@ -450,9 +367,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CLOC_STATUS: ${{ needs.cloc.result }}
|
CLOC_STATUS: ${{ needs.cloc.result }}
|
||||||
SETUP_STATUS: ${{ needs.setup.result }}
|
SETUP_STATUS: ${{ needs.setup.result }}
|
||||||
BUILD_OSS_SELFHOST_STATUS: ${{ needs.build-oss-selfhost.result }}
|
ARTIFACT_STATUS: ${{ needs.build-artifacts.result }}
|
||||||
BUILD_CLOUD_STATUS: ${{ needs.build-cloud.result }}
|
|
||||||
BUILD_COMMERCIAL_SELFHOST_STATUS: ${{ needs.build-commercial-selfhost.result }}
|
|
||||||
BUILD_QA_STATUS: ${{ needs.build-qa.result }}
|
BUILD_QA_STATUS: ${{ needs.build-qa.result }}
|
||||||
CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }}
|
CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }}
|
||||||
run: |
|
run: |
|
||||||
@ -460,11 +375,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
elif [ "$SETUP_STATUS" = "failure" ]; then
|
elif [ "$SETUP_STATUS" = "failure" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$BUILD_OSS_SELFHOST_STATUS" = "failure" ]; then
|
elif [ "$ARTIFACT_STATUS" = "failure" ]; then
|
||||||
exit 1
|
|
||||||
elif [ "$BUILD_CLOUD_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
elif [ "$BUILD_COMMERCIAL_SELFHOST_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$BUILD_QA_STATUS" = "failure" ]; then
|
elif [ "$BUILD_QA_STATUS" = "failure" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
16
.github/workflows/release-qa-web.yml
vendored
16
.github/workflows/release-qa-web.yml
vendored
@ -7,6 +7,16 @@ on:
|
|||||||
image_extension:
|
image_extension:
|
||||||
description: "Image tag extension"
|
description: "Image tag extension"
|
||||||
required: false
|
required: false
|
||||||
|
azure_publish:
|
||||||
|
description: 'Release to Azure'
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
cloudflare_publish:
|
||||||
|
description: 'Release to Cloudflare'
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
env:
|
env:
|
||||||
_QA_CLUSTER_RESOURCE_GROUP: "bw-env-qa"
|
_QA_CLUSTER_RESOURCE_GROUP: "bw-env-qa"
|
||||||
@ -17,6 +27,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy QA Web
|
name: Deploy QA Web
|
||||||
|
if: inputs.azure_publish
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
@ -78,6 +89,7 @@ jobs:
|
|||||||
cfpages-deploy:
|
cfpages-deploy:
|
||||||
name: Deploy Web Vault to QA CloudFlare Pages branch
|
name: Deploy Web Vault to QA CloudFlare Pages branch
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
if: inputs.cloudflare_publish
|
||||||
steps:
|
steps:
|
||||||
- name: Create GitHub deployment
|
- name: Create GitHub deployment
|
||||||
uses: chrnorm/deployment-action@1b599fe41a0ef1f95191e7f2eec4743f2d7dfc48
|
uses: chrnorm/deployment-action@1b599fe41a0ef1f95191e7f2eec4743f2d7dfc48
|
||||||
@ -107,12 +119,12 @@ jobs:
|
|||||||
path: apps/web
|
path: apps/web
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
branch: ${{ github.ref_name }}
|
branch: ${{ github.ref_name }}
|
||||||
artifacts: web-*-cloud-COMMERCIAL.zip
|
artifacts: web-*-cloud-QA.zip
|
||||||
|
|
||||||
# This should result in a build directory in the current working directory
|
# This should result in a build directory in the current working directory
|
||||||
- name: Unzip build asset
|
- name: Unzip build asset
|
||||||
working-directory: apps/web
|
working-directory: apps/web
|
||||||
run: unzip web-*-cloud-COMMERCIAL.zip
|
run: unzip web-*-cloud-QA.zip
|
||||||
|
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
||||||
|
Loading…
Reference in New Issue
Block a user