Skip to content

Commit

Permalink
Merge pull request #43 from bootsie123/circleci-test
Browse files Browse the repository at this point in the history
Transition from Travis CI to CircleCI
  • Loading branch information
bootsie123 authored Sep 21, 2021
2 parents 5c2a937 + 3163e7a commit 6cf8c89
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 722 deletions.
88 changes: 88 additions & 0 deletions .circleci/config.yml
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
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# [F1 Web Viewer](https://f1webviewer.netlify.app)

[![Netlify Status](https://api.netlify.com/api/v1/badges/a2267ed1-c542-46d4-8f08-ce6c1847d270/deploy-status)](https://f1webviewer.netlify.app)
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/bootsie123/f1-web-viewer)](https://hub.docker.com/repository/docker/bootsie123/f1-web-viewer)
[![CircleCI Build Status](https://circleci.com/gh/bootsie123/F1-Web-Viewer/tree/production.svg?style=svg)](https://circleci.com/gh/bootsie123/F1-Web-Viewer/tree/production)
[![GitHub](https://img.shields.io/github/license/bootsie123/F1-Web-Viewer)](https://github.com/bootsie123/F1-Web-Viewer/blob/master/LICENSE)

A simple grid-based web viewer for Formula 1. Simply login with your F1TV credentials, select the season, event, and session, and then drag and drop the channels you want to watch into the grid! Unable to install it? No problem! The application can be fully accessed [here](https://f1webviewer.netlify.app)
Expand Down
Loading

0 comments on commit 6cf8c89

Please sign in to comment.