-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.11 KB
/
release.yaml
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
name: release
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install dependencies and build
run: |
npm install
npm run build
# - name: Run unit tests
# run: |
# cp .env.example.dev .env
# npm run test
- name: Get version from package.json
run: |
lerna_version=$(node -p "require('./package.json').version")
echo "APP_VERSION=$lerna_version" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Publish the FnAuthz to Docker Hub
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: fonoster/fnauthz
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
context: .
tags: "latest,${{ env.APP_VERSION }}"
platforms: linux/amd64,linux/arm64