poll.horse/.github/workflows/docker-image-master.yml
dependabot[bot] 62b10762ff Bump docker/build-push-action from 3 to 4
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 17:50:42 +01: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.5.1
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@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: wolvan/poll.horse:latest