From dd79a6b2e64921122397bf6d5974185f9aa6c87a Mon Sep 17 00:00:00 2001 From: "Justin D. Harris" Date: Thu, 24 Dec 2020 23:21:35 -0500 Subject: [PATCH] client: Add GitHub action deploy file --- .github/workflows/client-deploy.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/client-deploy.yml diff --git a/.github/workflows/client-deploy.yml b/.github/workflows/client-deploy.yml new file mode 100644 index 0000000..35d6737 --- /dev/null +++ b/.github/workflows/client-deploy.yml @@ -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