diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e0cf1b2c..00000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -language: bash -services: - - docker -env: - global: - - DOCKER_IMAGE=bycedric/expo-cli -stages: - - expo cli v3 - - expo cli v2 -jobs: - include: - - stage: expo cli v3 - script: - - docker build base/3 -t $DOCKER_IMAGE:3 - - docker run -ti --rm $DOCKER_IMAGE:3 diagnostics - before_deploy: - - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - - docker tag $DOCKER_IMAGE:3 $DOCKER_IMAGE:latest - deploy: - provider: script - script: docker push $DOCKER_IMAGE:3 && docker push $DOCKER_IMAGE:latest - on: - branch: master - - stage: expo cli v2 - script: - - docker build base/2 -t $DOCKER_IMAGE:2 - - docker run -ti --rm $DOCKER_IMAGE:2 diagnostics - before_deploy: - - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - deploy: - provider: script - script: docker push $DOCKER_IMAGE:2 - on: - branch: master diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 9718c52e..00000000 --- a/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM bycedric/expo-cli:3 - -COPY entrypoint.sh LICENSE.md README.md / - -# move the entry point as proxy command for expo itself -# see: https://github.com/expo/expo-github-action/#automatic-expo-login -RUN mv entrypoint.sh /usr/local/bin/expo - -# increase node's default memory limit to 4gb -# see: https://github.com/expo/expo-github-action/#overwriting-node_options -ENV NODE_OPTIONS="--max_old_space_size=4096" - -ENTRYPOINT ["/usr/local/bin/expo"] diff --git a/base/2/Dockerfile b/base/2/Dockerfile deleted file mode 100644 index aac97179..00000000 --- a/base/2/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM node:10 - -LABEL name="Expo for Docker" -LABEL repository="https://github.com/expo/expo-github-action" -LABEL homepage="https://github.com/expo/expo-github-action/blob/master/base" -LABEL maintainer="Cedric van Putten " - -RUN yarn global add expo-cli@2 \ - && yarn cache clean - -COPY entrypoint.sh LICENSE.md README.md / - -ENTRYPOINT ["/entrypoint.sh"] diff --git a/base/2/LICENSE.md b/base/2/LICENSE.md deleted file mode 100644 index b5f3cb88..00000000 --- a/base/2/LICENSE.md +++ /dev/null @@ -1,22 +0,0 @@ -# The MIT License (MIT) - -Copyright (c) 2019-present Cedric van Putten -Copyright (c) 2019-present 650 Industries, Inc. (aka Expo) - -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. diff --git a/base/2/README.md b/base/2/README.md deleted file mode 100644 index 12d1216e..00000000 --- a/base/2/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# Expo for Docker - -[![Build Status](https://travis-ci.com/expo/expo-github-action.svg?branch=master)](https://travis-ci.com/expo/expo-github-action) - -A prebuilt docker image to use the [Expo CLI][link-expo-cli] on Docker-based environments. -This image contains all necessary libraries to perform all commands of the CLI. -To make sure this image stays up to date, Travis CI is scheduled to run weekly builds. - -- Based on `node:10` image -- Contains globally installed `expo-cli@2` - -> This version is capped to `expo-cli@2.x.x` and `node@10.x.x`, which are outdated. -> Please [upgrade to the latest version ASAP](../3). - -## Usage - -The entry point of this image forwards to the Expo CLI itself. -With this entry point, you can provide any command directly to Docker. -When nothing is provided, it will output the help information provided by the CLI. - -> The entry point uses `sh -c` to invoke Expo, making environment variables available to that command. - -```bash -$ docker run --rm bycedric/expo-cli:2 -$ docker run --rm bycedric/expo-cli:2 pubish -$ docker run --rm -ti bycedric/expo-cli:2 login -$ docker run --rm -ti --entrypoint sh bycedric/expo-cli:2 -``` - -> This image is intended to use on Docker-based CI environments, see [the Expo CI guide][link-expo-cicd] to get started. - -## License - -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. - ---- --- - -

- with :heart: byCedric -

- -[link-expo-cli]: https://docs.expo.io/versions/latest/workflow/expo-cli -[link-expo-cicd]: https://docs.expo.io/versions/latest/guides/setting-up-continuous-integration diff --git a/base/2/entrypoint.sh b/base/2/entrypoint.sh deleted file mode 100755 index 06ca524e..00000000 --- a/base/2/entrypoint.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -l - -set -e -sh -c "expo $*" diff --git a/base/3/Dockerfile b/base/3/Dockerfile deleted file mode 100644 index 22658891..00000000 --- a/base/3/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM node:12 - -LABEL name="Expo for Docker" -LABEL repository="https://github.com/expo/expo-github-action" -LABEL homepage="https://github.com/expo/expo-github-action/blob/master/base" -LABEL maintainer="Cedric van Putten " - -RUN yarn global add expo-cli@3 \ - && yarn cache clean - -COPY entrypoint.sh LICENSE.md README.md / - -ENTRYPOINT ["/entrypoint.sh"] diff --git a/base/3/LICENSE.md b/base/3/LICENSE.md deleted file mode 100644 index b5f3cb88..00000000 --- a/base/3/LICENSE.md +++ /dev/null @@ -1,22 +0,0 @@ -# The MIT License (MIT) - -Copyright (c) 2019-present Cedric van Putten -Copyright (c) 2019-present 650 Industries, Inc. (aka Expo) - -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. diff --git a/base/3/README.md b/base/3/README.md deleted file mode 100644 index 3cea53fb..00000000 --- a/base/3/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# Expo for Docker - -[![Build Status](https://travis-ci.com/expo/expo-github-action.svg?branch=master)](https://travis-ci.com/expo/expo-github-action) - -A prebuilt docker image to use the [Expo CLI][link-expo-cli] on Docker-based environments. -This image contains all necessary libraries to perform all commands of the CLI. -To make sure this image stays up to date, Travis CI is scheduled to run weekly builds. - -- Based on `node:12` image -- Contains globally installed `expo-cli@3` - -## Usage - -The entry point of this image forwards to the Expo CLI itself. -With this entry point, you can provide any command directly to Docker. -When nothing is provided, it will output the help information provided by the CLI. - -> The entry point uses `sh -c` to invoke Expo, making environment variables available to that command. - -```bash -$ docker run --rm bycedric/expo-cli -$ docker run --rm bycedric/expo-cli pubish -$ docker run --rm -ti bycedric/expo-cli login -$ docker run --rm -ti --entrypoint sh bycedric/expo-cli -``` - -> This image is intended to use on Docker-based CI environments, see [the Expo CI guide][link-expo-cicd] to get started. - -## License - -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. - ---- --- - -

- with :heart: byCedric -

- -[link-expo-cli]: https://docs.expo.io/versions/latest/workflow/expo-cli -[link-expo-cicd]: https://docs.expo.io/versions/latest/guides/setting-up-continuous-integration diff --git a/base/3/entrypoint.sh b/base/3/entrypoint.sh deleted file mode 100755 index 06ca524e..00000000 --- a/base/3/entrypoint.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -l - -set -e -sh -c "expo $*" diff --git a/base/README.md b/base/README.md deleted file mode 100644 index 2d814d7a..00000000 --- a/base/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Expo for Docker - -[![Build Status](https://travis-ci.com/expo/expo-github-action.svg?branch=master)](https://travis-ci.com/expo/expo-github-action) - -A prebuilt docker image to use the [Expo CLI][link-expo-cli] on Docker-based environments. -This image contains all necessary libraries to perform all commands of the CLI. -To make sure this image stays up to date, Travis CI is scheduled to run weekly builds. - -- [Expo CLI v3](3) -- [Expo CLI v2](2) _outdated_ - -[link-expo-cli]: https://docs.expo.io/versions/latest/workflow/expo-cli diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index b7fce81c..00000000 --- a/entrypoint.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -l - -set -e - -if [ -n "$EXPO_CLI_USERNAME" ] && [ -n "$EXPO_CLI_PASSWORD" ]; then - expo-cli login --non-interactive --username $EXPO_CLI_USERNAME -else - echo '' - echo 'Skipping automatic Expo login, username and/or password not defined.' - echo ' - https://github.com/expo/expo-github-action#used-secrets' - echo ' - https://github.com/expo/expo-github-action#example-workflows' - echo '' -fi - -sh -c "expo-cli $*"