Skip to content

Commit

Permalink
update installers
Browse files Browse the repository at this point in the history
  • Loading branch information
seyuf committed Jun 30, 2023
1 parent 8d7c8ff commit df2e3f7
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:

- name: Building magento-actions docker image
run: |
docker build . --tag ghcr.io/mad-i-t/magento-actions:3.22 --tag ghcr.io/mad-i-t/magento-actions:latest
docker push ghcr.io/mad-i-t/magento-actions:3.22
docker build . --tag ghcr.io/mad-i-t/magento-actions:3.23 --tag ghcr.io/mad-i-t/magento-actions:latest
docker push ghcr.io/mad-i-t/magento-actions:3.23
docker push ghcr.io/mad-i-t/magento-actions:latest
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ inputs:

runs:
using: 'docker'
image: 'docker://ghcr.io/mad-i-t/magento-actions:3.22'
image: 'docker://ghcr.io/mad-i-t/magento-actions:3.23'
branding:
icon: 'arrow-up-circle'
color: 'blue'
7 changes: 6 additions & 1 deletion scripts/install-mage-os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set -e


if [ -n "$GITLAB_USER_NAME" ]
then
which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
Expand All @@ -23,6 +22,12 @@ then
rm -rf ./magento
fi

if [ -d "$PROJECT_PATH/magento" ]
then
echo "An magento project already exists."
echo "Please consider deleting the magento directory first."
exit 1
fi

if [ "$INPUT_MAGENTO_VERSION" = "nightly" ]
then
Expand Down
8 changes: 7 additions & 1 deletion scripts/install-magento.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ PROJECT_PATH="$(pwd)"
echo "currently in $PROJECT_PATH"
git config --global --add safe.directory $(realpath .)


if [ $INPUT_NO_PUSH = 1 ]
then
rm -rf ./magento
fi

if [ -d "$PROJECT_PATH/magento" ]
then
echo "An magento project already exists."
echo "Please consider deleting the magento directory first."
exit 1
fi

majorVersion=${INPUT_MAGENTO_VERSION:2:1}
minorVersion=${INPUT_MAGENTO_VERSION:4:1}

Expand Down
16 changes: 16 additions & 0 deletions scripts/pwa-studio-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ then
echo "StrictHostKeyChecking no " > /root/.ssh/config
fi

PROJECT_PATH="$(pwd)"

echo "currently in $PROJECT_PATH"

if [ $INPUT_NO_PUSH = 1 ]
then
rm -rf ./pwa-studio
fi

if [ -d "$PROJECT_PATH/pwa-studio" ]
then
echo "An PWA studio project already exists."
echo "Please consider deleting the pwa-studio directory first."
exit 1
fi

chown -R root:root .

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash
Expand Down

0 comments on commit df2e3f7

Please sign in to comment.