Skip to content

Update release workflow #14

Update release workflow

Update release workflow #14

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14.18.1'
- name: Install dependencies
run: npm ci
- name: Build app
run: npm run build
# - name: Generate Release, Changelogs
# env:
# GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npx semantic-release
- 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.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: dieuhd/sonar-quality-gate:latest