mirror of
https://github.com/expo/expo-github-action.git
synced 2026-11-15 17:32:45 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aff8989f53 | ||
|
|
698a1c68a5 | ||
|
|
4c25ef9693 | ||
|
|
aa752f2bde | ||
|
|
fa422416ae | ||
|
|
92beb0f493 | ||
|
|
fe96c9dc68 | ||
|
|
a801b833a5 | ||
|
|
2c88f88370 | ||
|
|
0ce8eff16c | ||
|
|
4e2fd4d394 | ||
|
|
3f55e8c261 | ||
|
|
b8ec50268d | ||
|
|
0cfae07bbd | ||
|
|
fe86cd6f46 | ||
|
|
617ebf80c7 | ||
|
|
e6a3b5c87a | ||
|
|
96ead1e418 | ||
|
|
cd75584edf | ||
|
|
3c768431d6 | ||
|
|
608c9c6bf4 | ||
|
|
b5a0311abb | ||
|
|
9625bb1e0b | ||
|
|
a401e3018c | ||
|
|
48bbaf3003 | ||
|
|
a90ce593da | ||
|
|
7596f6b789 | ||
|
|
9aec1f5ae6 |
No files matched your search
@@ -0,0 +1,23 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
---
|
||||
|
||||
### Description of the bug
|
||||
How would you shortly summarise the issue?
|
||||
|
||||
### To Reproduce
|
||||
What steps did you perform which led to this issue?
|
||||
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
|
||||
#### Expected behavior
|
||||
What did you expect to have happened?
|
||||
|
||||
#### Actual behavior
|
||||
What did it actually result in?
|
||||
|
||||
### Additional context
|
||||
Can you further explain the issue? E.g., information about version/environment or screenshots.
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
name: New discussion
|
||||
about: Start a discussion about a certain topic
|
||||
---
|
||||
|
||||
### Topic and scope of discussion
|
||||
How would you summarise and scope the issue?
|
||||
|
||||
### Motivation
|
||||
Why should we have this discussion?
|
||||
|
||||
### Additional context
|
||||
Can you further explain the purpose of this discussion? E.g., screenshots or real-world examples.
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
---
|
||||
|
||||
### Description of the feature
|
||||
How would you briefly summarise the feature?
|
||||
|
||||
### Motivation
|
||||
Why does this feature should be implemented?
|
||||
|
||||
### Additional context
|
||||
Can you further explain the feature? E.g., screenshots or real-world examples.
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
name: Minor changes
|
||||
about: Suggest a small change, or fix, like typos
|
||||
---
|
||||
|
||||
#### Old version
|
||||
What did you find that should be changed?
|
||||
|
||||
#### New version
|
||||
How should it look after the suggested change?
|
||||
|
||||
### Additional context
|
||||
Can you further clarify the change? E.g., link to a dictionary or real-world examples.
|
||||
@@ -0,0 +1,5 @@
|
||||
### Linked issue
|
||||
Provide the issue(s) which this pull request relates to or fixes.
|
||||
|
||||
### Additional context
|
||||
Are there things the maintainers should be aware of before merging or closing this pull request?
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
---
|
||||
language: bash
|
||||
services:
|
||||
- docker
|
||||
env:
|
||||
global:
|
||||
- DOCKER_IMAGE=bycedric/expo-cli
|
||||
- DOCKER_TAG=2
|
||||
script:
|
||||
- docker build base -t $DOCKER_IMAGE:$DOCKER_TAG
|
||||
- docker run -ti --rm $DOCKER_IMAGE:$DOCKER_TAG diagnostics
|
||||
- docker build . -t expo/expo-github-action
|
||||
- docker run -ti --rm expo/expo-github-action diagnostics
|
||||
before_deploy:
|
||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
- docker tag $DOCKER_IMAGE:$DOCKER_TAG $DOCKER_IMAGE:latest
|
||||
deploy:
|
||||
provider: script
|
||||
script: docker push $DOCKER_IMAGE:$DOCKER_TAG && docker push $DOCKER_IMAGE:latest
|
||||
on:
|
||||
branch: master
|
||||
+94
-25
@@ -1,33 +1,102 @@
|
||||
## [2.0.0](https://github.com/bycedric/ci-expo/compare/906c910...2.0.0) (2019-04-02)
|
||||
## [2.3.1](https://github.com/expo/expo-github-action/compare/2.3.0...2.3.1) (2019-04-17)
|
||||
|
||||
### New features
|
||||
### Bug fixes
|
||||
|
||||
* add basic ios build action ([3a81415](https://github.com/bycedric/ci-expo/commit/3a81415))
|
||||
* add basic web build action ([3d4bdb6](https://github.com/bycedric/ci-expo/commit/3d4bdb6))
|
||||
* add basic android build action ([9105177](https://github.com/bycedric/ci-expo/commit/9105177))
|
||||
* add new publish action ([56563f2](https://github.com/bycedric/ci-expo/commit/56563f2))
|
||||
* add login entrypoint ([252f16d](https://github.com/bycedric/ci-expo/commit/252f16d))
|
||||
* add github actions implemented image for expo cli ([864b9bb](https://github.com/bycedric/ci-expo/commit/864b9bb))
|
||||
* add base image with documentation and licenses ([c43e5c3](https://github.com/bycedric/ci-expo/commit/c43e5c3))
|
||||
|
||||
### Code refactors
|
||||
|
||||
* tag all buid actions as unofficial for release ([ed597e5](https://github.com/bycedric/ci-expo/commit/ed597e5))
|
||||
* simplify publish action and remove extraneous entrypoint ([61d0c21](https://github.com/bycedric/ci-expo/commit/61d0c21))
|
||||
* tag all actions as unofficial for release to marketplace ([f56443a](https://github.com/bycedric/ci-expo/commit/f56443a))
|
||||
* expand existing login with documentation and proper icon ([d2e2a6d](https://github.com/bycedric/ci-expo/commit/d2e2a6d))
|
||||
* move cli to root as default ([4545e44](https://github.com/bycedric/ci-expo/commit/4545e44))
|
||||
* expand existing login with documentation and proper icon ([923ed34](https://github.com/bycedric/ci-expo/commit/923ed34))
|
||||
* remove third party notice until its updated ([f4fc39a](https://github.com/bycedric/ci-expo/commit/f4fc39a))
|
||||
* use full node version instead of alpine ([a019c94](https://github.com/bycedric/ci-expo/commit/a019c94))
|
||||
* increase node memory limit to 4gb ([4c25ef9](https://github.com/expo/expo-github-action/commit/4c25ef9))
|
||||
|
||||
### Documentation changes
|
||||
|
||||
* add link to login from publish action ([5b7564c](https://github.com/bycedric/ci-expo/commit/5b7564c))
|
||||
* add custom cli command action ([4cf38f9](https://github.com/bycedric/ci-expo/commit/4cf38f9))
|
||||
* add do not use in production warning ([8291794](https://github.com/bycedric/ci-expo/commit/8291794))
|
||||
* add basic repository description ([906c910](https://github.com/bycedric/ci-expo/commit/906c910))
|
||||
* add note about overwriting node options ([aa752f2](https://github.com/expo/expo-github-action/commit/aa752f2))
|
||||
* add extra link to base image in description ([fa42241](https://github.com/expo/expo-github-action/commit/fa42241))
|
||||
* rename build action to remove ambiguity with other examples ([92beb0f](https://github.com/expo/expo-github-action/commit/92beb0f))
|
||||
|
||||
### Other chores
|
||||
|
||||
* remove the cli from name ([ab9265b](https://github.com/bycedric/ci-expo/commit/ab9265b))
|
||||
* make travis build the action to double check the docker file ([698a1c6](https://github.com/expo/expo-github-action/commit/698a1c6))
|
||||
|
||||
|
||||
## [2.3.0](https://github.com/expo/expo-github-action/compare/2.2.0...2.3.0) (2019-04-14)
|
||||
|
||||
### New features
|
||||
|
||||
* build docker base image from travis ci ([0ce8eff](https://github.com/expo/expo-github-action/commit/0ce8eff))
|
||||
|
||||
### Code refactors
|
||||
|
||||
* update base image labels ([4e2fd4d](https://github.com/expo/expo-github-action/commit/4e2fd4d))
|
||||
* remove unofficial from the name ([b8ec502](https://github.com/expo/expo-github-action/commit/b8ec502))
|
||||
* remove deprecated subactions ([0cfae07](https://github.com/expo/expo-github-action/commit/0cfae07))
|
||||
|
||||
### Documentation changes
|
||||
|
||||
* add scheduled builds info and update examples ([a801b83](https://github.com/expo/expo-github-action/commit/a801b83))
|
||||
* add travis link to base image builds ([2c88f88](https://github.com/expo/expo-github-action/commit/2c88f88))
|
||||
* add 650 industries aka expo as license holder ([3f55e8c](https://github.com/expo/expo-github-action/commit/3f55e8c))
|
||||
* add 650 industries aka expo as license holder ([fe86cd6](https://github.com/expo/expo-github-action/commit/fe86cd6))
|
||||
* update references to action repository ([617ebf8](https://github.com/expo/expo-github-action/commit/617ebf8))
|
||||
* use latest npm action because of an install failure ([e6a3b5c](https://github.com/expo/expo-github-action/commit/e6a3b5c))
|
||||
|
||||
|
||||
## [2.2.0](https://github.com/expo/expo-github-action/compare/2.1.0...2.2.0) (2019-04-10)
|
||||
|
||||
### Code refactors
|
||||
|
||||
* use better expo cli variables prefix ([cd75584](https://github.com/expo/expo-github-action/commit/cd75584))
|
||||
|
||||
### Documentation changes
|
||||
|
||||
* pin actions to versions for future releases ([3c76843](https://github.com/expo/expo-github-action/commit/3c76843))
|
||||
|
||||
|
||||
## [2.1.0](https://github.com/expo/expo-github-action/compare/2.0.0...2.1.0) (2019-04-10)
|
||||
|
||||
### Code refactors
|
||||
|
||||
* authenticate in main action if possible ([a401e30](https://github.com/expo/expo-github-action/commit/a401e30))
|
||||
* remove extraneous commands from base image ([a90ce59](https://github.com/expo/expo-github-action/commit/a90ce59))
|
||||
|
||||
### Documentation changes
|
||||
|
||||
* add deprecation notice on all sub-actions ([b5a0311](https://github.com/expo/expo-github-action/commit/b5a0311))
|
||||
* add examples and more contextual info ([9625bb1](https://github.com/expo/expo-github-action/commit/9625bb1))
|
||||
* fix typo in documentation and use link references ([48bbaf3](https://github.com/expo/expo-github-action/commit/48bbaf3))
|
||||
* update license to 2019 ([7596f6b](https://github.com/expo/expo-github-action/commit/7596f6b))
|
||||
|
||||
### Other chores
|
||||
|
||||
* add some issue templates to github ([9aec1f5](https://github.com/expo/expo-github-action/commit/9aec1f5))
|
||||
|
||||
|
||||
## [2.0.0](https://github.com/expo/expo-github-action/compare/906c910...2.0.0) (2019-04-02)
|
||||
|
||||
### New features
|
||||
|
||||
* add basic ios build action ([3a81415](https://github.com/expo/expo-github-action/commit/3a81415))
|
||||
* add basic web build action ([3d4bdb6](https://github.com/expo/expo-github-action/commit/3d4bdb6))
|
||||
* add basic android build action ([9105177](https://github.com/expo/expo-github-action/commit/9105177))
|
||||
* add new publish action ([56563f2](https://github.com/expo/expo-github-action/commit/56563f2))
|
||||
* add login entrypoint ([252f16d](https://github.com/expo/expo-github-action/commit/252f16d))
|
||||
* add github actions implemented image for expo cli ([864b9bb](https://github.com/expo/expo-github-action/commit/864b9bb))
|
||||
* add base image with documentation and licenses ([c43e5c3](https://github.com/expo/expo-github-action/commit/c43e5c3))
|
||||
|
||||
### Code refactors
|
||||
|
||||
* tag all buid actions as unofficial for release ([ed597e5](https://github.com/expo/expo-github-action/commit/ed597e5))
|
||||
* simplify publish action and remove extraneous entrypoint ([61d0c21](https://github.com/expo/expo-github-action/commit/61d0c21))
|
||||
* tag all actions as unofficial for release to marketplace ([f56443a](https://github.com/expo/expo-github-action/commit/f56443a))
|
||||
* expand existing login with documentation and proper icon ([d2e2a6d](https://github.com/expo/expo-github-action/commit/d2e2a6d))
|
||||
* move cli to root as default ([4545e44](https://github.com/expo/expo-github-action/commit/4545e44))
|
||||
* expand existing login with documentation and proper icon ([923ed34](https://github.com/expo/expo-github-action/commit/923ed34))
|
||||
* remove third party notice until its updated ([f4fc39a](https://github.com/expo/expo-github-action/commit/f4fc39a))
|
||||
* use full node version instead of alpine ([a019c94](https://github.com/expo/expo-github-action/commit/a019c94))
|
||||
|
||||
### Documentation changes
|
||||
|
||||
* add link to login from publish action ([5b7564c](https://github.com/expo/expo-github-action/commit/5b7564c))
|
||||
* add custom cli command action ([4cf38f9](https://github.com/expo/expo-github-action/commit/4cf38f9))
|
||||
* add do not use in production warning ([8291794](https://github.com/expo/expo-github-action/commit/8291794))
|
||||
* add basic repository description ([906c910](https://github.com/expo/expo-github-action/commit/906c910))
|
||||
|
||||
### Other chores
|
||||
|
||||
* remove the cli from name ([ab9265b](https://github.com/expo/expo-github-action/commit/ab9265b))
|
||||
+11
-3
@@ -1,6 +1,14 @@
|
||||
FROM bycedric/ci-expo:2
|
||||
FROM bycedric/expo-cli:2
|
||||
|
||||
LABEL com.github.actions.name="Expo CLI (unofficial)"
|
||||
LABEL com.github.actions.description="Use any Expo command in your GitHub Actions workflow."
|
||||
LABEL com.github.actions.name="Expo CLI"
|
||||
LABEL com.github.actions.description="Use any Expo CLI command in your GitHub Actions workflow."
|
||||
LABEL com.github.actions.icon="terminal"
|
||||
LABEL com.github.actions.color="gray-dark"
|
||||
|
||||
COPY entrypoint.sh LICENSE.md README.md /
|
||||
|
||||
# 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 ["/entrypoint.sh"]
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
# The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Cedric van Putten <me@bycedric.com>
|
||||
Copyright (c) 2019 Cedric van Putten <me@bycedric.com>
|
||||
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
|
||||
|
||||
@@ -1,19 +1,67 @@
|
||||
# Expo for GitHub Actions
|
||||
|
||||
> Both GitHub Actions and this library are highly unstable, do not use in production (yet).
|
||||
> GitHub Actions is still in beta, use it at your own risk.
|
||||
|
||||
Publish, build or manage your [Expo](https://expo.io) Project with GitHub Actions!
|
||||
Publish, build or manage your [Expo][link-expo] Project with GitHub Actions!
|
||||
This repository contains a prebuilt base image with GitHub Actions implementations.
|
||||
You can also use [the base image](base) in other Docker-based environments.
|
||||
|
||||
## Usage
|
||||
## What's inside?
|
||||
|
||||
Below you can see an example workflow to get you started right away!
|
||||
Within this Expo CLI action, you have full access to the original [Expo CLI][link-expo-cli].
|
||||
That means you can perform any command like login, publish and build.
|
||||
Also, this action will authenticate automatically when both `EXPO_CLI_USERNAME` and `EXPO_CLI_PASSWORD` variables are defined.
|
||||
|
||||
> Check out both [login](./login) and [publish](./publish) actions for more info.
|
||||
> You don't necessarily need this action to use Expo.
|
||||
> You can also add `expo-cli` as a dependency to your project and use the official [NPM action][link-actions-npm] for example.
|
||||
> However, when you do that you need to manage authentication yourself.
|
||||
|
||||
### Why use a base-image?
|
||||
|
||||
Every GitHub action will start from scratch using the dockerfile as the starting point.
|
||||
If you define `expo-cli` in this dockerfile, it will install it every time you run an action.
|
||||
By using [a prebuilt image](base), it basically "skips" the process of downloading the full CLI over and over again.
|
||||
This makes the Expo actions overall faster.
|
||||
|
||||
### Used secrets
|
||||
|
||||
To authenticate with your Expo account, use the variables listed below.
|
||||
In the Expo action you can define `secrets = ["EXPO_CLI_USERNAME", "EXPO_CLI_PASSWORD"]` to have them available.
|
||||
|
||||
variable | description
|
||||
--- | ---
|
||||
`EXPO_CLI_USERNAME` | The email address or username of your Expo account.
|
||||
`EXPO_CLI_PASSWORD` | The password of your Expo account, [automatically picked up by the cli][link-expo-cli-password].
|
||||
|
||||
> Some Expo commands don't require authentication.
|
||||
> Simply omit the `secrets = [...]` if you don't need it.
|
||||
|
||||
### Some caveats
|
||||
|
||||
#### Overwriting `NODE_OPTIONS`
|
||||
|
||||
By default, Node has a "limited" memory limit.
|
||||
To fully use the available memory in GitHub Actions, the `NODE_OPTIONS` variable is set to `--max_old_space_size=4096`.
|
||||
If you need to overwrite this variable, make sure you add this value too or risk Node running out of memory.
|
||||
See [issue #12][link-issue-memory] for more info.
|
||||
|
||||
## Example workflows
|
||||
|
||||
Before you dive into the workflow examples, you should know the basics of GitHub Actions.
|
||||
You can read more about this in the [GitHub Actions documentation][link-actions].
|
||||
|
||||
1. [Publish on any push](#publish-on-any-push)
|
||||
2. [Publish on a specific branch](#publish-on-a-specific-branch)
|
||||
3. [Test and build web every day at 08:00](#test-and-build-web-every-day-at-0800)
|
||||
|
||||
### Publish on any push
|
||||
|
||||
Below you can see the example configuration to publish whenever the repository is updated.
|
||||
The workflow listens to the `push` event and resolves directly to the `publish` action.
|
||||
Before publishing your app, it installs your project's dependencies using the [NPM action][link-actions-npm].
|
||||
|
||||
```hcl
|
||||
workflow "Install, Authenticate, and Publish" {
|
||||
workflow "Install and Publish" {
|
||||
on = "push"
|
||||
resolves = ["Publish"]
|
||||
}
|
||||
@@ -23,28 +71,80 @@ action "Install" {
|
||||
args = "install"
|
||||
}
|
||||
|
||||
action "Authenticate" {
|
||||
needs = "Install"
|
||||
uses = "bycedric/ci-expo/login@master"
|
||||
secrets = ["EXPO_USERNAME", "EXPO_PASSWORD"]
|
||||
}
|
||||
|
||||
action "Publish" {
|
||||
needs = "Authenticate"
|
||||
uses = "bycedric/ci-expo/publish@master"
|
||||
needs = "Install"
|
||||
uses = "expo/[email protected]"
|
||||
args = "publish"
|
||||
secrets = ["EXPO_CLI_USERNAME", "EXPO_CLI_PASSWORD"]
|
||||
}
|
||||
```
|
||||
|
||||
### Custom command
|
||||
### Publish on a specific branch
|
||||
|
||||
By default, you have full access to the actual [Expo CLI](https://docs.expo.io/versions/latest/workflow/expo-cli).
|
||||
That means that you should be able to use every function from the CLI in your actions.
|
||||
Below you can see how a custom command can be defined.
|
||||
This workflow is similar to the [publish on any push](#publish-on-any-push) configuration.
|
||||
It will install and test the code using the [NPM action][link-actions-npm] on every push.
|
||||
But instead of publishing on any push too, it will publish on the `master` branch only.
|
||||
|
||||
```hcl
|
||||
action "Doctor" {
|
||||
uses = "bycedric/ci-expo@master"
|
||||
args = "doctor"
|
||||
workflow "Install and Publish" {
|
||||
on = "push"
|
||||
resolves = ["Publish"]
|
||||
}
|
||||
|
||||
action "Install" {
|
||||
uses = "actions/npm@master"
|
||||
args = "install"
|
||||
}
|
||||
|
||||
action "Test" {
|
||||
needs = "Install"
|
||||
uses = "actions/npm@master"
|
||||
args = "test"
|
||||
}
|
||||
|
||||
action "Filter branch" {
|
||||
needs = "Test"
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "branch master"
|
||||
}
|
||||
|
||||
action "Publish" {
|
||||
needs = "Filter branch"
|
||||
uses = "expo/[email protected]"
|
||||
args = "publish"
|
||||
secrets = ["EXPO_CLI_USERNAME", "EXPO_CLI_PASSWORD"]
|
||||
}
|
||||
```
|
||||
|
||||
### Test and build web every day at 08:00
|
||||
|
||||
The most significant change here is that we've changed the workflow trigger.
|
||||
Instead of listening to push events, it's scheduled to run every day at 08:00.
|
||||
|
||||
> For web builds, you don't need to be authenticated.
|
||||
> That's why `secrets = [...]` is omitted here.
|
||||
|
||||
```hcl
|
||||
workflow "Install, Test and Build for Web" {
|
||||
on = "schedule(0 8 * * *)"
|
||||
resolves = ["Build"]
|
||||
}
|
||||
|
||||
action "Install" {
|
||||
uses = "actions/npm@master"
|
||||
args = "install"
|
||||
}
|
||||
|
||||
action "Test" {
|
||||
needs = "Install"
|
||||
uses = "actions/npm@master"
|
||||
args = "test"
|
||||
}
|
||||
|
||||
action "Build" {
|
||||
needs = "Test"
|
||||
uses = "expo/[email protected]"
|
||||
args = "build:web"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -57,3 +157,10 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
|
||||
<p align="center">
|
||||
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
|
||||
</p>
|
||||
|
||||
[link-actions]: https://developer.github.com/actions/
|
||||
[link-actions-npm]: https://github.com/actions/npm
|
||||
[link-expo]: https://expo.io
|
||||
[link-expo-cli]: https://docs.expo.io/versions/latest/workflow/expo-cli
|
||||
[link-expo-cli-password]: https://github.com/expo/expo-cli/blob/8ea616d8848a123270b97e226e33dcb3dde49653/packages/expo-cli/src/accounts.js#L94
|
||||
[link-issue-memory]: https://github.com/expo/expo-github-action/issues/12
|
||||
+4
-7
@@ -1,17 +1,14 @@
|
||||
FROM node:10
|
||||
|
||||
LABEL name="Expo for Docker"
|
||||
LABEL version="2.0.0"
|
||||
LABEL repository="https://github.com/bycedric/ci-expo"
|
||||
LABEL homepage="https://github.com/bycedric/ci-expo/tree/master/base"
|
||||
LABEL maintainer="Cedric van Putten <[email protected]>"
|
||||
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 <[email protected]>"
|
||||
|
||||
RUN npm install --global expo-cli@2 \
|
||||
&& npm cache rm --force \
|
||||
&& rm -rf ~/.npm
|
||||
|
||||
COPY LICENSE.md README.md /
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
COPY entrypoint.sh LICENSE.md README.md /
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["--help"]
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
# The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Cedric van Putten <me@bycedric.com>
|
||||
Copyright (c) 2019 Cedric van Putten <me@bycedric.com>
|
||||
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
|
||||
|
||||
+13
-7
@@ -1,7 +1,10 @@
|
||||
# Expo for Docker
|
||||
|
||||
A prebuilt docker image to use the [Expo CLI](https://docs.expo.io/versions/latest/workflow/expo-cli) on Docker-based environments.
|
||||
[](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`
|
||||
@@ -12,16 +15,16 @@ 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 variable available to that command.
|
||||
> The entry point uses `sh -c` to invoke Expo, making environment variables available to that command.
|
||||
|
||||
```bash
|
||||
$ docker run --rm bycedric/ci-expo
|
||||
$ docker run --rm bycedric/ci-expo pubish
|
||||
$ docker run --rm -ti bycedric/ci-expo login
|
||||
$ docker run --rm -ti --entrypoint sh bycedric/ci-expo
|
||||
$ 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](https://docs.expo.io/versions/latest/guides/setting-up-continuous-integration) to get started.
|
||||
> This image is intended to use on Docker-based CI environments, see [the Expo CI guide][link-expo-cicd] to get started.
|
||||
|
||||
## License
|
||||
|
||||
@@ -32,3 +35,6 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
|
||||
<p align="center">
|
||||
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
|
||||
</p>
|
||||
|
||||
[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
|
||||
@@ -1,8 +0,0 @@
|
||||
FROM bycedric/ci-expo:2
|
||||
|
||||
LABEL com.github.actions.name="Build Expo Android app (unofficial)"
|
||||
LABEL com.github.actions.description="Create a standalone Android app in your GitHub Actions workflow."
|
||||
LABEL com.github.actions.icon="package"
|
||||
LABEL com.github.actions.color="gray-dark"
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh", "build:android"]
|
||||
@@ -1,21 +0,0 @@
|
||||
# The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Cedric van Putten <me@bycedric.com>
|
||||
|
||||
> 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.
|
||||
@@ -1,28 +0,0 @@
|
||||
# Expo Build Android for GitHub Actions
|
||||
|
||||
Create a new standalone Android build from your GitHub workflow.
|
||||
Optionally, you can configure the properties of this standalone app.
|
||||
|
||||
> Make sure to [login](../login) before this step, else your workflow won't have the permission to build a new version
|
||||
|
||||
## Usage
|
||||
|
||||
Below you can see an example of a build Android action.
|
||||
|
||||
> Just like the [publish](../publish) action, you can customize the Android app.
|
||||
|
||||
```hcl
|
||||
action "Build Android app" {
|
||||
uses = "bycedric/ci-expo/build-android@master"
|
||||
}
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
|
||||
|
||||
--- ---
|
||||
|
||||
<p align="center">
|
||||
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
|
||||
</p>
|
||||
@@ -1,8 +0,0 @@
|
||||
FROM bycedric/ci-expo:2
|
||||
|
||||
LABEL com.github.actions.name="Build Expo iOS app (unofficial)"
|
||||
LABEL com.github.actions.description="Create a standalone iOS app in your GitHub Actions workflow."
|
||||
LABEL com.github.actions.icon="package"
|
||||
LABEL com.github.actions.color="gray-dark"
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh", "build:ios"]
|
||||
@@ -1,21 +0,0 @@
|
||||
# The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Cedric van Putten <me@bycedric.com>
|
||||
|
||||
> 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.
|
||||
@@ -1,28 +0,0 @@
|
||||
# Expo Build iOS for GitHub Actions
|
||||
|
||||
Create a new standalone iOS build from your GitHub workflow.
|
||||
Optionally, you can configure the properties of this standalone app.
|
||||
|
||||
> Make sure to [login](../login) before this step, else your workflow won't have the permission to build a new version
|
||||
|
||||
## Usage
|
||||
|
||||
Below you can see an example of a build iOS action.
|
||||
|
||||
> Just like the [publish](../publish) action, you can customize the iOS app.
|
||||
|
||||
```hcl
|
||||
action "Build iOS app" {
|
||||
uses = "bycedric/ci-expo/build-ios@master"
|
||||
}
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
|
||||
|
||||
--- ---
|
||||
|
||||
<p align="center">
|
||||
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
|
||||
</p>
|
||||
@@ -1,8 +0,0 @@
|
||||
FROM bycedric/ci-expo:2
|
||||
|
||||
LABEL com.github.actions.name="Build Expo web bundle (unofficial)"
|
||||
LABEL com.github.actions.description="Create a bundle for web deployments from your GitHub Actions workflow."
|
||||
LABEL com.github.actions.icon="package"
|
||||
LABEL com.github.actions.color="gray-dark"
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh", "build:web"]
|
||||
@@ -1,21 +0,0 @@
|
||||
# The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Cedric van Putten <me@bycedric.com>
|
||||
|
||||
> 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.
|
||||
@@ -1,28 +0,0 @@
|
||||
# Expo Build Web for GitHub Actions
|
||||
|
||||
Create a new app web bundle from your GitHub workflow.
|
||||
Optionally, you can configure the properties of this bunle.
|
||||
|
||||
> Authentication is not required for this step.
|
||||
|
||||
## Usage
|
||||
|
||||
Below you can see an example of a build web action.
|
||||
|
||||
> Just like the [publish](../publish) action, you can customize the web bundle.
|
||||
|
||||
```hcl
|
||||
action "Build web bundle" {
|
||||
uses = "bycedric/ci-expo/build-web@master"
|
||||
}
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
|
||||
|
||||
--- ---
|
||||
|
||||
<p align="center">
|
||||
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
|
||||
</p>
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh -l
|
||||
|
||||
set -e
|
||||
|
||||
if [ -n "$EXPO_CLI_USERNAME" ] && [ -n "$EXPO_CLI_PASSWORD" ]; then
|
||||
expo login --username $EXPO_CLI_USERNAME
|
||||
else
|
||||
echo 'Skipping Expo login, username and/or password not defined...'
|
||||
fi
|
||||
|
||||
sh -c "expo $*"
|
||||
@@ -1,11 +0,0 @@
|
||||
FROM bycedric/ci-expo:2
|
||||
|
||||
LABEL com.github.actions.name="Login with Expo (unofficial)"
|
||||
LABEL com.github.actions.description="Authenticate with Expo your GitHub Actions workflow."
|
||||
LABEL com.github.actions.icon="log-in"
|
||||
LABEL com.github.actions.color="gray-dark"
|
||||
|
||||
COPY LICENSE.md README.md /
|
||||
COPY entrypoint.sh /entrypoint-login.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint-login.sh"]
|
||||
@@ -1,21 +0,0 @@
|
||||
# The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Cedric van Putten <me@bycedric.com>
|
||||
|
||||
> 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.
|
||||
@@ -1,31 +0,0 @@
|
||||
# Expo Login for GitHub Actions
|
||||
|
||||
Authenticate the current workflow to publish new versions or create new builds.
|
||||
It works relatively simple, you define the Expo credentials and this action will do the rest.
|
||||
|
||||
## Usage
|
||||
|
||||
First you need to define the [secrets listed below][#secrets] through [GitHub secrets](https://developer.github.com/actions/managing-workflows/storing-secrets/).
|
||||
After that, you can add the action below in your workflow.
|
||||
|
||||
```hcl
|
||||
action "Login with Expo" {
|
||||
uses = "bycedric/ci-expo/login@master"
|
||||
secrets = ["EXPO_USERNAME", "EXPO_PASSWORD"]
|
||||
}
|
||||
```
|
||||
|
||||
### Secrets
|
||||
|
||||
* `EXPO_USERNAME` - **Required**. The email address or username of the Expo account.
|
||||
* `EXPO_PASSWORD` - **Required**. The password of the Expo account.
|
||||
|
||||
## License
|
||||
|
||||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
|
||||
|
||||
--- ---
|
||||
|
||||
<p align="center">
|
||||
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
|
||||
</p>
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/sh -l
|
||||
|
||||
set -e
|
||||
|
||||
if [ -n "$EXPO_USERNAME" ] && [ -n "$EXPO_PASSWORD" ]; then
|
||||
expo login --username $EXPO_USERNAME --password $EXPO_PASSWORD
|
||||
else
|
||||
echo "Please define both EXPO_USERNAME and EXPO_PASSWORD."
|
||||
exit 1
|
||||
fi
|
||||
@@ -1,10 +0,0 @@
|
||||
FROM bycedric/ci-expo:2
|
||||
|
||||
LABEL com.github.actions.name="Publish to Expo (unofficial)"
|
||||
LABEL com.github.actions.description="Publish a new release to Expo in your GitHub Actions workflow."
|
||||
LABEL com.github.actions.icon="box"
|
||||
LABEL com.github.actions.color="gray-dark"
|
||||
|
||||
COPY LICENSE.md README.md /
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh", "publish"]
|
||||
@@ -1,21 +0,0 @@
|
||||
# The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Cedric van Putten <me@bycedric.com>
|
||||
|
||||
> 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.
|
||||
@@ -1,49 +0,0 @@
|
||||
# Expo Publish for GitHub Actions
|
||||
|
||||
Publish a brand new release straight from your GitHub workflow.
|
||||
Optionally, you can configure the release channel or manifest file.
|
||||
|
||||
> Make sure to [login](../login) before this step, else your workflow won't have the permission to build a new version
|
||||
|
||||
## Usage
|
||||
|
||||
Below you can see an example of a publish action.
|
||||
By default, it will publish to the default release channel with the manifest located at `app.json`.
|
||||
|
||||
```hcl
|
||||
action "Publish to Expo" {
|
||||
uses = "bycedric/ci-expo/publish@master"
|
||||
}
|
||||
```
|
||||
|
||||
### Release channels
|
||||
|
||||
You can also use a different release channel, to test before the actual build goes live for example.
|
||||
|
||||
```hcl
|
||||
action "Publish to Expo" {
|
||||
uses = "bycedric/ci-expo/publish@master"
|
||||
args = "--release-channel staging"
|
||||
}
|
||||
```
|
||||
|
||||
### Custom manifest
|
||||
|
||||
When using non-default locations for the manifest, you can use the `--config` argument.
|
||||
|
||||
```hcl
|
||||
action "Publish to Expo" {
|
||||
uses = "bycedric/ci-expo/publish@master"
|
||||
args = "--config custom-app.json"
|
||||
}
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
|
||||
|
||||
--- ---
|
||||
|
||||
<p align="center">
|
||||
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
|
||||
</p>
|
||||
Reference in new issue
Block a user