Skip to content

Commit

Permalink
client: Add GitHub action deploy file
Browse files Browse the repository at this point in the history
  • Loading branch information
juharris authored Dec 25, 2020
1 parent a34819c commit dd79a6b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/client-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Client Deploy

on:
push:
branches:
- main
paths:
- 'website-client/**'
- '.github/workflows/client-**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
# Change to ubuntu-20.04 when it is fully supported.
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Docker Build & Push
run: |
pushd website-client
docker build -t juharris/switch-remoteplay-client:latest .
docker run --rm -e CI=true --name switch-remoteplay-client juharris/switch-remoteplay-client:latest yarn test
docker login --username juharris --password ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
docker push juharris/switch-remoteplay-client:latest

0 comments on commit dd79a6b

Please sign in to comment.