Skip to content

Add login/profile widget to nav bar. (#1377) #49

Add login/profile widget to nav bar. (#1377)

Add login/profile widget to nav bar. (#1377) #49

Workflow file for this run

name: publish-release
on:
push:
tags:
- "*"
env:
NODE_VERSION: 18.x
DOCKER_REPO: sheltertechsf/askdarcel-web
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
flavor: |
latest=false
prefix=
suffix=
images: |
${{ env.DOCKER_REPO }}
tags: |
type=semver,pattern={{version}}
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- run: npm ci
- run: cp config.example.yml config.yml
- run: CONFIG_YAML=config.docker.yml npm run build
- run: touch version.json
- uses: docker/build-push-action@v2
with:
push: true
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- run: echo ${{ steps.docker_build.outputs.digest }}