This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from VirtoCommerce/dev
v1.5.0
- Loading branch information
Showing
85 changed files
with
3,000 additions
and
1,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# v0.1 | ||
name: Theme deployment | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
blobUrl: | ||
description: 'Artifact download url' | ||
required: true | ||
artifactVersion: | ||
description: 'Full artifact build number' | ||
required: true | ||
key: | ||
description: 'Deployment config map key' | ||
required: true | ||
appDescriptionRepo: | ||
description: 'ArgoCd repository' | ||
required: true | ||
default: 'VirtoCommerce/vc-deploy-apps' | ||
appDescriptionBranch: | ||
description: 'ArgoCd branch' | ||
required: true | ||
default: 'master' | ||
|
||
|
||
jobs: | ||
cd: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Start deployment | ||
uses: bobheadxi/deployments@master | ||
id: deployment | ||
with: | ||
step: start | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
env: Development | ||
no_override: false | ||
|
||
- name: Checkout ArgoCD repository | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.REPO_TOKEN }} | ||
repository: ${{ github.event.inputs.appDescriptionRepo }} | ||
ref: ${{ github.event.inputs.appDescriptionBranch }} | ||
|
||
- name: Update deployment-cm | ||
shell: pwsh | ||
run: | | ||
cd ${{ github.workspace }} | ||
cd ./webstore-app/overlays/dev | ||
$fileName = "./deployment-cm.yaml" | ||
$content = Get-Content $fileName | ||
$key = "${{ github.event.inputs.key }}" | ||
$artifactPath = "${{ github.event.inputs.blobUrl }}" | ||
$content -replace "$key\s*:.*", "$key`: $artifactPath" | Set-Content -Path $fileName | ||
- name: Commit deployment-cm change | ||
shell: pwsh | ||
run: | | ||
if(git status --porcelain |Where {$_ -notmatch '^\?\?'}) # uncommitted changes exist | ||
{ | ||
git config --global user.name 'GitHub Actions' | ||
git config user.email --global '[email protected]' | ||
git commit -am 'Automated update ${{ github.repository }} to ${{ github.event.inputs.artifactVersion }}' | ||
git push | ||
} | ||
else | ||
{ | ||
Write-Output 'Nothing to commit, working tree clean' | ||
} | ||
- name: Wait for environment is up | ||
shell: pwsh | ||
timeout-minutes: 5 | ||
run: | | ||
do { | ||
Start-Sleep -s 15 | ||
$statusBage = (Invoke-WebRequest -Uri "https://cd.govirto.com/api/badge?name=webstore-app-dev").Content | ||
$syncedAndHealthy = $statusBage.Contains('>Healthy<') -and $statusBage.Contains('>Synced<') | ||
if (-not $syncedAndHealthy) { | ||
Write-Host "Sync pending..." | ||
} | ||
} | ||
while (-not $syncedAndHealthy) | ||
- name: BUILD_STATE::successful | ||
if: success() | ||
run: echo "BUILD_STATE=successful" >> $GITHUB_ENV | ||
|
||
- name: BUILD_STATE::failed | ||
if: failure() | ||
run: echo "BUILD_STATE=failed" >> $GITHUB_ENV | ||
|
||
- name: Update GitHub deployment status | ||
uses: bobheadxi/deployments@master | ||
if: always() | ||
with: | ||
step: finish | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
status: ${{ job.status }} | ||
deployment_id: ${{ steps.deployment.outputs.deployment_id }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions
28
assets/js/bootstrap-migration/common-components/searchBar.tpl.html.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<form method="get" action="{{ '/search' | absolute_url }}" role="search" autocomplete="off"> | ||
<div class="input-group" uib-dropdown is-open="$ctrl.hasHint" dropdown-append-to-body="true"> | ||
<input type="search" name="q" class="form-control border-top-0 border-left-0 border-right-0 border-gray-900 navbar-search-bar" ng-model="$ctrl.query" placeholder="{% raw %}{{ $ctrl.placeholder }}{% endraw %}" | ||
uib-typeahead="suggestion as suggestion.name for suggestion in $ctrl.getSuggestions()" typeahead-is-open="$ctrl.isOpen" typeahead-wait-ms="100" typeahead-loading="$ctrl.isSearching" typeahead-no-results="$ctrl.hasNoResults" | ||
typeahead-focus-first="false" typeahead-template-url="search-bar-match.tpl" typeahead-popup-template-url="search-bar-popup.tpl" typeahead-append-to-body="true"> | ||
<ul class="dropdown-menu" uib-dropdown-menu> | ||
<li class="disabled" ng-show="$ctrl.isSearching"><a href="" ng-bind="$ctrl.searching"></a></li> | ||
<li class="disabled" ng-show="$ctrl.hasNoResults"><a href="" ng-bind="$ctrl.noResults"></a></li> | ||
</ul> | ||
<span class="input-group-append"> | ||
<button type="submit" class="btn btn-primary rounded-0 border-top-0 border-left-0 border-right-0 border-bottom border-gray-900 px-3 py-2" ng-bind="$ctrl.submitLabel"></button> | ||
</span> | ||
</div> | ||
<script id="search-bar-match.tpl" type="text/ng-template"> | ||
<a ng-href="{% raw %}{{ match.model.url }}{% endraw %}" | ||
tabindex="-1" | ||
ng-bind-html="match.label | uibTypeaheadHighlight:query" | ||
ng-attr-title="{{match.label}}"></a> | ||
</script> | ||
<script id="search-bar-popup.tpl" type="text/ng-template"> | ||
<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+'px', left: position().left+'px'}" role="listbox" aria-hidden="{% raw %}{{!isOpen()}}{% endraw %}"> | ||
<li class="dropdown-header" ng-repeat-start="(group, groupMatches) in matches | groupBy: 'model.within'" ng-bind="$parent.$parent.$ctrl[group + 'Label']"></li> | ||
<li class="uib-typeahead-match" ng-repeat="match in groupMatches track by $index" ng-repeat-end ng-class="{active: isActive(match.model.index) }" ng-mouseenter="selectActive(match.model.index)" ng-click="selectMatch(match.model.index, $event)" role="option" id="{% raw %}{{::match.id}}{% endraw %}"> | ||
<div uib-typeahead-match index="match.model.index" match="match" query="query" template-url="templateUrl"></div> | ||
</li> | ||
</ul> | ||
</script> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.