Skip to content

Bump ws from 5.2.2 to 5.2.4 #81

Bump ws from 5.2.2 to 5.2.4

Bump ws from 5.2.2 to 5.2.4 #81

Workflow file for this run

name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm run build --if-present
- name: Spit out version file
run: echo "`date -u`" > out/when.txt
- name: Archive static site
uses: actions/upload-artifact@v2
with:
name: static-output
path: out
deploy-storage:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@master
with:
name: static-output
path: out
- uses: LanceMcCarthy/Action-AzureBlobUpload@v2
with:
source_folder: out
container_name: $web
connection_string: ${{ secrets.STORAGE_CONNECTION_STRING }}
clean_destination_folder: 'true'
deploy-docker-hub:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@master
with:
name: static-output
path: out
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.dockerhub_user }}
password: ${{ secrets.dockerhub_password }}
- name: Build and push Docker images
uses: docker/build-push-action@v2.2.1
with:
context: .
file: ./Dockerfile
push: true
tags: ytechie/msdevshow:latest