Skip to content

feat: use nodjs lts in Dockerfile #132

feat: use nodjs lts in Dockerfile

feat: use nodjs lts in Dockerfile #132

Workflow file for this run

name: ci
on:
push:
branches:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/witchtrade/backend
tags: |
type=raw,value={{branch}}-{{sha}}
flavor: |
latest=${{ endsWith(github.ref, github.event.repository.default_branch) }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}