poll.horse/.github/workflows/docker-image-master.yml
dependabot[bot] f90552df43 Bump actions/setup-node from 3.0.0 to 3.1.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 19:01:32 +02:00

52 lines
1.1 KiB
YAML

name: Docker Image CI
on:
push:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
# Checkout the Repo
- uses: actions/checkout@v3
# Install Node 16
- name: Setup Node
uses: actions/setup-node@v3.1.0
with:
node-version: 16
# Avoid running prepublish script
- run: npm set-script prepublish ""
# Install dependencies
- run: npm install
# Run tests
- run: npm test
build:
if: startsWith(github.event.ref, 'refs/tags')
needs: test
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: wolvan/poll.horse:latest