-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
237 changed files
with
180,608 additions
and
168 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ builds: | |
- CGO_ENABLED=0 | ||
main: ./cmd/cloud | ||
ldflags: | ||
- -s -w -X main.VERSION={{.Tag}}-{{ time "200601021504" }} | ||
- -s -w -X main.github.com/rewardenv/reward-cloud-cli/internal/globals.CLITOKEN={{ .Env.REWARD_CLOUD_CLI_TOKEN }} -X main.github.com/rewardenv/reward-cloud-cli/internal/globals.VERSION={{.Tag}}-{{ time "200601021504" }} | ||
goos: | ||
- linux | ||
- windows | ||
|
@@ -19,16 +19,17 @@ builds: | |
- amd64 | ||
- "386" | ||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
format_overrides: | ||
- format_overrides: | ||
- goos: windows | ||
format: zip | ||
name_template: '{{- .ProjectName -}}_{{- .Os -}}_{{- if and (eq .Os "Linux") (eq .Arch "arm64") -}}aarch64{{- else -}}{{- .Arch -}}{{- end -}}' | ||
name_template: | | ||
{{- .ProjectName -}}_ | ||
{{- title .Os -}}_ | ||
{{- if and (eq .Os "linux") (eq .Arch "arm64") -}}aarch64 | ||
{{- else if eq .Arch "amd64" -}}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{- .Arch -}} | ||
{{- end -}} | ||
files: | ||
- none* | ||
release: | ||
|
@@ -46,13 +47,14 @@ changelog: | |
- '^test:' | ||
nfpms: | ||
- package_name: reward-cloud | ||
file_name_template: '{{- .ProjectName -}}_{{- .Os -}}_{{- if and (eq .Os "Linux") (eq .Arch "arm64") -}}aarch64{{- else -}}{{- .Arch -}}{{- end -}}' | ||
replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
file_name_template: | | ||
{{- .ProjectName -}}_ | ||
{{- title .Os -}}_ | ||
{{- if and (eq .Os "linux") (eq .Arch "arm64") -}}aarch64 | ||
{{- else if eq .Arch "amd64" -}}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{- .Arch -}} | ||
{{- end -}} | ||
maintainer: Janos Miko <[email protected]> | ||
description: Reward-Cloud is a plugin for Reward to manipulate Cloud environments. | ||
license: MIT | ||
|
@@ -67,7 +69,7 @@ nfpms: | |
rpm: | ||
compression: lzma | ||
brews: | ||
- tap: | ||
- repository: | ||
owner: rewardenv | ||
name: homebrew-tap | ||
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" | ||
|
@@ -78,7 +80,7 @@ brews: | |
folder: Formula | ||
description: Reward-Cloud is a plugin for Reward to manipulate Cloud environments. | ||
license: MIT | ||
skip_upload: "true" | ||
skip_upload: "false" | ||
dependencies: | ||
- name: reward-beta | ||
type: optional |
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 @@ | ||
REWARD_CLOUD_CLI_TOKEN= |
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 @@ | ||
dotenv |
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 |
---|---|---|
|
@@ -100,3 +100,4 @@ Network Trash Folder | |
Temporary Items | ||
.apdisk | ||
|
||
.env |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ builds: | |
- CGO_ENABLED=0 | ||
main: ./cmd/cloud | ||
ldflags: | ||
- -s -w -X main.VERSION={{.Tag}} | ||
- -s -w -X github.com/rewardenv/reward-cloud-cli/internal/globals.CLITOKEN={{ .Env.REWARD_CLOUD_CLI_TOKEN }} -X github.com/rewardenv/reward-cloud-cli/internal/globals.VERSION={{.Tag}}-{{ time "200601021504" }} | ||
goos: | ||
- linux | ||
- windows | ||
|
@@ -19,16 +19,17 @@ builds: | |
- amd64 | ||
- "386" | ||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
format_overrides: | ||
- format_overrides: | ||
- goos: windows | ||
format: zip | ||
name_template: '{{- .ProjectName -}}_{{- .Os -}}_{{- if and (eq .Os "Linux") (eq .Arch "arm64") -}}aarch64{{- else -}}{{- .Arch -}}{{- end -}}' | ||
name_template: | | ||
{{- .ProjectName -}}_ | ||
{{- title .Os -}}_ | ||
{{- if and (eq .Os "linux") (eq .Arch "arm64") -}}aarch64 | ||
{{- else if eq .Arch "amd64" -}}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{- .Arch -}} | ||
{{- end -}} | ||
files: | ||
- none* | ||
release: | ||
|
@@ -44,13 +45,15 @@ changelog: | |
- '^test:' | ||
nfpms: | ||
- package_name: reward-cloud | ||
file_name_template: '{{- .ProjectName -}}_{{- .Os -}}_{{- if and (eq .Os "Linux") (eq .Arch "arm64") -}}aarch64{{- else -}}{{- .Arch -}}{{- end -}}' | ||
replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
file_name_template: | | ||
{{- .ProjectName -}}_ | ||
{{- title .Os -}}_ | ||
{{- if and (eq .Os "linux") (eq .Arch "arm64") -}}aarch64 | ||
{{- else if eq .Arch "amd64" -}}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{- .Arch -}} | ||
{{- end -}} | ||
maintainer: Janos Miko <[email protected]> | ||
description: Reward-Cloud is a plugin for Reward to manipulate Cloud environments. | ||
license: MIT | ||
|
@@ -65,7 +68,7 @@ nfpms: | |
rpm: | ||
compression: lzma | ||
brews: | ||
- tap: | ||
- repository: | ||
owner: rewardenv | ||
name: homebrew-tap | ||
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" | ||
|
@@ -76,7 +79,7 @@ brews: | |
folder: Formula | ||
description: Reward-Cloud is a plugin for Reward to manipulate Cloud environments. | ||
license: MIT | ||
skip_upload: "true" | ||
skip_upload: "false" | ||
dependencies: | ||
- name: reward | ||
type: optional |
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 @@ | ||
--- | ||
project_name: reward-cloud | ||
before: | ||
hooks: | ||
- go mod download | ||
- go generate ./... | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
main: ./cmd/cloud | ||
ldflags: | ||
- -s -w -X github.com/rewardenv/reward-cloud-cli/internal/globals.CLITOKEN={{ .Env.REWARD_CLOUD_CLI_TOKEN }} -X github.com/rewardenv/reward-cloud-cli/internal/globals.VERSION={{.Tag}}-{{ time "200601021504" }} | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
goarch: | ||
- arm64 | ||
- amd64 | ||
- "386" | ||
archives: | ||
- format: binary | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' |
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,6 @@ | ||
package assets | ||
|
||
import "embed" | ||
|
||
//go:embed all:* | ||
var Assets embed.FS |
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 @@ | ||
{{- if eq .Values.projectType "magento" -}} | ||
{{- include "magento-dockerfile-start" . | nindent 0 -}} | ||
{{- else if eq .Values.projectType "wordpress" -}} | ||
{{- include "wordpress-dockerfile-start" . | nindent 0 -}} | ||
{{- else if eq .Values.projectType "shopware" -}} | ||
{{- include "shopware-dockerfile-start" . | nindent 0 -}} | ||
{{- else if eq .Values.projectType "magento-pwa" -}} | ||
{{- include "magento-pwa-dockerfile-start" . | nindent 0 -}} | ||
{{- else if eq .Values.projectType "shopware-pwa" -}} | ||
{{- include "shopware-pwa-dockerfile-start" . | nindent 0 -}} | ||
{{- end }} | ||
|
||
{{- range $key, $value := .Values.envVars }} | ||
ARG {{ printf "%s=%s" $key $value }} | ||
ENV {{ printf "%s $%s" $key $key }} | ||
{{- end }} | ||
|
||
{{- if eq .Values.projectType "magento" -}} | ||
{{- include "magento-dockerfile-end" . | nindent 0 -}} | ||
{{- else if eq .Values.projectType "wordpress" -}} | ||
{{- include "wordpress-dockerfile-end" . | nindent 0 -}} | ||
{{- else if eq .Values.projectType "shopware" -}} | ||
{{- include "shopware-dockerfile-end" . | nindent 0 -}} | ||
{{- else if eq .Values.projectType "magento-pwa" -}} | ||
{{- include "magento-pwa-dockerfile-end" . | nindent 0 -}} | ||
{{- else if eq .Values.projectType "shopware-pwa" -}} | ||
{{- include "shopware-pwa-dockerfile-end" . | nindent 0 -}} | ||
{{- end }} |
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,7 @@ | ||
{{- define "php-version" -}} | ||
{{- printf "%s" .Values.phpVersion -}} | ||
{{- end -}} | ||
|
||
{{- define "build-image-suffix" -}} | ||
-debian-bullseye-rootless | ||
{{- end -}} |
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,75 @@ | ||
{{- define "magento-dockerfile-start" -}} | ||
FROM rewardenv/php-fpm:{{ include "php-version" . }}-magento2-web{{ include "build-image-suffix" . }} | ||
|
||
ARG COMPOSER_INSTALL | ||
ARG COMPOSER_VERSION=2.2.19 | ||
ARG COMPOSER_AUTH | ||
ARG COMPOSER_GITHUB_USER | ||
ARG COMPOSER_GITHUB_TOKEN | ||
ARG COMPOSER_BITBUCKET_PUBLIC_KEY | ||
ARG COMPOSER_BITBUCKET_PRIVATE_KEY | ||
ARG COMPOSER_GITLAB_HOST | ||
ARG COMPOSER_GITLAB_OAUTH_TOKEN | ||
ARG COMPOSER_GITLAB_TOKEN | ||
ARG MAGENTO_PUBLIC_KEY | ||
ARG MAGENTO_PRIVATE_KEY | ||
ARG MAGENTO_LANGUAGES | ||
ARG MAGENTO_DI_COMPILE=true | ||
ARG MAGENTO_STATIC_CONTENT_DEPLOY=false | ||
ARG MAGENTO_DEV_STATIC_SIGN=true | ||
ARG MAGENTO_DEV_JS_MERGE=true | ||
ARG MAGENTO_DEV_JS_MINIFY=true | ||
ARG MAGENTO_DEV_JS_BUNDLING=false | ||
ARG MAGENTO_DEV_CSS_MERGE=true | ||
ARG MAGENTO_DEV_CSS_MINIFY=true | ||
ARG MAGENTO_DEV_HTML_MINIFY=false | ||
ARG COMMAND_BEFORE_COMPOSER_INSTALL | ||
ARG COMMAND_AFTER_COMPOSER_INSTALL | ||
ARG COMMAND_BEFORE_DI_COMPILE | ||
ARG COMMAND_AFTER_DI_COMPILE | ||
ARG COMPOSER_DUMP_AUTOLOAD=true | ||
{{- end -}} | ||
|
||
{{- define "magento-dockerfile-end" -}} | ||
COPY --chown=www-data:www-data . . | ||
|
||
RUN <<-EOF | ||
set -eux | ||
if [ "${COMPOSER_VERSION:-2}" = "1" ]; then | ||
alternatives --altdir ~/.local/etc/alternatives --admindir ~/.local/var/lib/alternatives --set composer "${HOME}/.local/bin/composer1"; | ||
else | ||
alternatives --altdir ~/.local/etc/alternatives --admindir ~/.local/var/lib/alternatives --set composer "${HOME}/.local/bin/composer2"; | ||
if [ "${COMPOSER_VERSION:-2}" = "2" ]; then | ||
composer self-update --stable; | ||
else | ||
composer self-update "${COMPOSER_VERSION:-2}"; | ||
fi | ||
fi | ||
if [ -n "${MAGENTO_PUBLIC_KEY-}" ]; then composer global config http-basic.repo.magento.com ${MAGENTO_PUBLIC_KEY-} ${MAGENTO_PRIVATE_KEY-}; fi | ||
if [ -n "${COMPOSER_GITHUB_USER-}" ]; then composer global config http-basic.github.com ${COMPOSER_GITHUB_USER-} ${COMPOSER_GITHUB_TOKEN-}; fi | ||
if [ -n "${COMPOSER_BITBUCKET_PUBLIC_KEY-}" ]; then composer global config bitbucket-oauth.bitbucket.org ${COMPOSER_BITBUCKET_PUBLIC_KEY-} ${COMPOSER_BITBUCKET_PRIVATE_KEY-}; fi | ||
if [ -n "${COMPOSER_GITLAB_OAUTH_TOKEN-}" ]; then composer global config gitlab-oauth.${COMPOSER_GITLAB_HOST:-gitlab.com} ${COMPOSER_GITLAB_OAUTH_TOKEN-}; fi | ||
if [ -n "${COMPOSER_GITLAB_TOKEN-}" ]; then composer global config gitlab-oauth.${COMPOSER_GITLAB_HOST:-gitlab.com} ${COMPOSER_GITLAB_TOKEN-}; fi | ||
if [ -n "${COMMAND_BEFORE_COMPOSER_INSTALL-}" ]; then eval "${COMMAND_BEFORE_COMPOSER_INSTALL-}"; fi | ||
if [ "${COMPOSER_VERSION:-2}" != "1" ]; then composer config --no-plugins allow-plugins.magento/* true; fi | ||
if [ "${COMPOSER_VERSION:-2}" != "1" ]; then composer config --no-plugins allow-plugins.laminas/laminas-dependency-plugin true; fi | ||
if [ "${COMPOSER_VERSION:-2}" != "1" ]; then composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true; fi | ||
if [ "${COMPOSER_VERSION:-2}" != "1" ]; then composer config --no-plugins allow-plugins.cweagans/composer-patches true; fi | ||
if [ "${COMPOSER_INSTALL:-true}" = "true" ]; then composer install --no-interaction --no-progress; fi | ||
if [ -n "${COMMAND_AFTER_COMPOSER_INSTALL-}" ]; then eval "${COMMAND_AFTER_COMPOSER_INSTALL-}"; fi | ||
composer --no-interaction clear-cache | ||
if [ -n "${COMMAND_BEFORE_DI_COMPILE-}" ]; then eval "${COMMAND_BEFORE_DI_COMPILE}"; fi | ||
if [ ! -f app/etc/config.php ]; then | ||
php bin/magento module:enable --no-interaction --all; | ||
fi | ||
if [ "${MAGENTO_DI_COMPILE-}" = "true" ] && [ "${MAGENTO_DI_COMPILE_ON_DEMAND:-false}" != "true" ]; then | ||
php bin/magento setup:di:compile --no-interaction; | ||
fi | ||
if [ -n "${COMMAND_AFTER_DI_COMPILE-}" ]; then eval "${COMMAND_AFTER_DI_COMPILE-}"; fi | ||
if [ "${COMPOSER_DUMP_AUTOLOAD-}" = "true" ]; then composer dump-autoload -o; fi | ||
if [ "${MAGENTO_STATIC_CONTENT_DEPLOY-}" = "true" ] && [ "${MAGENTO_SCD_ON_DEMAND:-false}" != "true" ]; | ||
then bin/magento setup:static-content:deploy --no-interaction --jobs=$(nproc) -fv ${MAGENTO_LANGUAGES:-}; | ||
fi | ||
printf "<?php\nprintf(\"php-version: %%g </br>\", phpversion());\nprintf(\"build-date: $(date '+%Y/%m/%d %H:%M:%S')\");\n?>\n" > pub/version.php | ||
EOF | ||
{{- end -}} |
Oops, something went wrong.