-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from bootsie123/circleci-test
Transition from Travis CI to CircleCI
- Loading branch information
Showing
5 changed files
with
101 additions
and
722 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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
node: circleci/[email protected] | ||
|
||
jobs: | ||
docker-release: | ||
docker: | ||
- image: cimg/node:14.17.6 | ||
steps: | ||
- checkout | ||
- setup_remote_docker: | ||
version: 20.10.7 | ||
- run: | ||
name: Docker info | ||
command: docker version && docker buildx version | ||
- run: | ||
name: Docker login | ||
command: docker login -u $DOCKER_USER -p $DOCKER_PASS | ||
- run: | ||
name: Build and push multiarch image | ||
command: | | ||
docker context create environment | ||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | ||
docker buildx create --name multiarch-builder --driver docker-container --use environment | ||
docker buildx inspect multiarch-builder | ||
docker buildx build --push \ | ||
--platform linux/amd64,linux/arm/v7,linux/arm64 \ | ||
-t bootsie123/f1-web-viewer:latest \ | ||
-t bootsie123/f1-web-viewer:v$(node -p -e "require('./package.json').version") \ | ||
. \ | ||
electron-release-osx: | ||
macos: | ||
xcode: 11.3.0 | ||
environment: | ||
ELECTRON_CACHE: $HOME/.cache/electron | ||
ELECTRON_BUILDER_CACHE: $HOME/.cache/electron-builder | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: "14.2.0" | ||
- run: | ||
name: Node version | ||
command: node --version && npm --version | ||
- run: | ||
name: Install node modules | ||
command: npm ci --include=dev | ||
- run: | ||
name: NPM build | ||
command: npm run build | ||
- run: | ||
name: Electron release (OSX) | ||
command: npm run release | ||
|
||
electron-release-linux-win: | ||
docker: | ||
- image: electronuserland/builder:wine | ||
steps: | ||
- checkout | ||
- run: | ||
name: Electron release (LINUX, WIN) | ||
command: yarn --link-duplicates --pure-lockfile && yarn release --linux --win | ||
|
||
workflows: | ||
docker-release: | ||
jobs: | ||
- docker-release: | ||
filters: | ||
branches: | ||
only: | ||
- production | ||
context: DockerHub | ||
electron-release: | ||
jobs: | ||
- electron-release-linux-win: | ||
filters: | ||
branches: | ||
only: | ||
- production | ||
context: GitHub | ||
- electron-release-osx: | ||
filters: | ||
branches: | ||
only: | ||
- production | ||
context: GitHub |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.