Skip to content

Commit 0ce8eff

Browse files
committed
feat: build docker base image from travis ci
This will ensure staying up to date and should add some transparency how these images are made.
1 parent 4e2fd4d commit 0ce8eff

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
language: bash
3+
services:
4+
- docker
5+
env:
6+
global:
7+
- DOCKER_IMAGE=bycedric/expo-cli
8+
- DOCKER_TAG=2
9+
script:
10+
- docker build base -t $DOCKER_IMAGE:$DOCKER_TAG
11+
- docker run -ti --rm $DOCKER_IMAGE:$DOCKER_TAG diagnostics
12+
before_deploy:
13+
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
14+
- docker tag $DOCKER_IMAGE:$DOCKER_TAG $DOCKER_IMAGE:latest
15+
deploy:
16+
provider: script
17+
script: docker push $DOCKER_IMAGE:$DOCKER_TAG && docker push $DOCKER_IMAGE:latest
18+
on:
19+
branch: master

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bycedric/ci-expo:2
1+
FROM bycedric/expo-cli:2
22

33
LABEL com.github.actions.name="Expo CLI"
44
LABEL com.github.actions.description="Use any Expo CLI command in your GitHub Actions workflow."

0 commit comments

Comments
 (0)