This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
83 lines (71 loc) · 2.04 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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 }}