Skip to content

Commit

Permalink
Update to Hypernode deploy v2
Browse files Browse the repository at this point in the history
Please note: this breaks the staging build and deploy, we need a
separate deploy.php file for that.
  • Loading branch information
tdgroot committed Aug 30, 2022
1 parent dc37534 commit c155be6
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 361 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ defaults:
shell: bash

jobs:
build:
build_staging:
runs-on: ubuntu-latest
#container: quay.io/hypernode/deploy:v1.0.0-alpha-php8.1-node18
if: github.ref == 'refs/heads/staging'
container: hipex/deploy:v2.13.0-alpha.3-php8.1-node18
steps:
- uses: actions/checkout@v2
Expand All @@ -36,7 +36,7 @@ jobs:
path: build/build.tgz

deploy_staging:
needs: build
needs: build_staging
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/staging'
container: hipex/deploy:v2.13.0-alpha.3-php8.1-node18
Expand All @@ -54,11 +54,31 @@ jobs:
- name: deploy to staging
run: hipex-deploy deploy staging -vvv

build_production:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
container: quay.io/hypernode/deploy:v2.0-php8.1-node18
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-composer
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- run: hipex-deploy build -vvv
- name: archive production artifacts
uses: actions/upload-artifact@v3
with:
name: deployment-build
path: build/build.tgz

deploy_production:
needs: build
needs: build_production
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
container: quay.io/hypernode/deploy:v1.0.0-alpha-php8.1-node18
container: quay.io/hypernode/deploy:v2.0-php8.1-node18
steps:
- uses: actions/checkout@v2
- name: download build artifact
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"allure-framework/allure-phpunit": "~1.5.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"friendsofphp/php-cs-fixer": "~3.3.0",
"hipex/deploy-configuration": "^2.4",
"lusitanian/oauth": "~0.8.10",
"magento/magento-coding-standard": "*",
"magento/magento2-functional-testing-framework": "^3.7",
Expand Down
Loading

0 comments on commit c155be6

Please sign in to comment.