Skip to content

Merge pull request #39 from scott-the-programmer/dependabot/npm_and_y… #85

Merge pull request #39 from scott-the-programmer/dependabot/npm_and_y…

Merge pull request #39 from scott-the-programmer/dependabot/npm_and_y… #85

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install & Build
run: |
npm install
npm test
npm run build
push_to_registry:
name: Push Docker image to GitHub Container Registry
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}/smkiwi:latest