Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

ci: enable release workflow manual trigger #4

ci: enable release workflow manual trigger

ci: enable release workflow manual trigger #4

Workflow file for this run

name: CI/CD Workflow for Walt.ID Verifier Portal
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Test scenario tags'
required: false
type: boolean
environment:
description: 'Environment to run tests against'
type: environment
required: true
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
# - name: Setup build tools
# run: sudo apt-get install g++ build-essential python3-dev
- uses: actions/checkout@v3
- name: Calculate release version
run: |
echo "release_version=1.$(date +'%g%m%d%H%M').0" >> $GITHUB_ENV
- run: |
git tag v${{ env.release_version }}
git push --tags
- name: Setup node env πŸ—
uses: actions/[email protected]
with:
node-version: '19'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm i
- name: Build
run: pnpm build
#- name: Run linter πŸ‘€
# run: yarn lint
#- name: Run tests πŸ§ͺ
# run: yarn test --passWithNoTests
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: waltid/ssikit-verifier-portal:latest, waltid/ssikit-verifier-portal:${{ env.release_version }}