-
Notifications
You must be signed in to change notification settings - Fork 79
71 lines (71 loc) · 2.63 KB
/
workflow-non-latest.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
name: KatalonDockerCI-NonLatest
on:
push:
branches:
- Build-arm
jobs:
run:
name: Run
runs-on: ubuntu-latest
env:
KS_VERSION: 10.0.0-dev
KS_VERSION_TAG: 10.0.0
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up QEMU dependency
uses: docker/setup-qemu-action@v3
- name: Set up Docker Context for Buildx
shell: bash
run: |
docker context create builders
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
endpoint: builders
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Prepare
run: |
chmod u+x ./build/*.sh
./build/prevent_overwrite_existing_tag.sh $KS_VERSION
- name: Build
run: |
chmod u+x ./build/*.sh
./build/clean.sh $KS_VERSION
./build/build.sh $KS_VERSION $KS_VERSION
- name: Test
run: |
chmod u+x ./test/project/*.sh
cd $GITHUB_WORKSPACE/test/project && rm -rfv ./bin && ./run_chrome.sh $KS_VERSION ${{ secrets.API_KEY }}
cd $GITHUB_WORKSPACE/test/project && rm -rfv ./bin && ./run_chrome_root.sh $KS_VERSION ${{ secrets.API_KEY }}
cd $GITHUB_WORKSPACE/test/project && rm -rfv ./bin && ./run_chrome_advanced.sh $KS_VERSION ${{ secrets.API_KEY }}
cd $GITHUB_WORKSPACE/test/project && rm -rfv ./bin && ./run_firefox.sh $KS_VERSION ${{ secrets.API_KEY }}
continue-on-error: true
# - uses: azure/docker-login@v1
# with:
# login-server: registry.hub.docker.com
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Push to dockerhub
# run: |
# cd $GITHUB_WORKSPACE
# docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} docker.io
# ./build/tag.sh $KS_VERSION_TAG
# ./build/push.sh $KS_VERSION_TAG
# - name: Slack Notification
# uses: rtCamp/action-slack-notify@master
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Scan Security Vulnerabilities
run: |
chmod u+x ./build/security-report/security_scan.sh
./build/security-report/security_scan.sh $KS_VERSION_TAG ${{ secrets.SNYK_AUTH_TOKEN }}
- name: Upload reports
run: |
chmod u+x ./build/security-report/upload.sh
./build/security-report/upload.sh $KS_VERSION_TAG ${{ secrets.SEC_AWS_S3_BUCKET }} ${{ secrets.SEC_AWS_ACCESS_KEY_ID }} ${{ secrets.SEC_AWS_SECRET_ACCESS_KEY }}