-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1.11 KB
/
e2e-tests.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
name: E2E tests
on:
pull_request:
workflow_dispatch:
inputs:
uninstall_fm:
description: 'Option to uninstall Frinx-machine'
required: true
default: 'true'
host:
description: 'frinx-machine helm-chart branch'
required: true
default: 'main'
jobs:
trigger-e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push latest
id: docker_build
env:
TAG: $(git rev-parse --short HEAD)
uses: docker/build-push-action@v4
with:
push: true
tags: |
frinx/frinx-frontend:${{ env.TAG }}
build-args: |
COMMIT_HASH=${{ github.sha }}
PRIVATE_GH_TOKEN=${{ secrets.PACKAGE_TOKEN }}
PRIVATE_NPM_TOKEN=${{ secrets.PUBLISH_TOKEN }}