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 #10

ci: enable release workflow manual trigger

ci: enable release workflow manual trigger #10

Workflow file for this run

name: Snapshot release workflow for Walt.ID Verifier portal
on:
push:
branches:
- '*'
- '*/*'
- '**'
- '!main'
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Calculate release version
run: |
echo "release_version=1.$(date +'%g%m%d%H%M').$(echo ${{ github.ref_name }} | tr / -)" >> $GITHUB_ENV
- name: Set version
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:${{ env.release_version }}