|
6 | 6 | - "auto-testing-deploy" |
7 | 7 |
|
8 | 8 | jobs: |
| 9 | + |
| 10 | + shai-hulud-detector: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: Checkout seb-server-gui repo |
| 14 | + uses: actions/checkout@v6 |
| 15 | + with: |
| 16 | + path: seb |
| 17 | + clean: false |
| 18 | + - name: Checkout Cobenian/shai-hulud-detect |
| 19 | + uses: actions/checkout@v6 |
| 20 | + with: |
| 21 | + repository: Cobenian/shai-hulud-detect |
| 22 | + path: hulud |
| 23 | + clean: false |
| 24 | + - # Pipeline will automatically fail on exit codes 1 or 2 |
| 25 | + name: Security Scan with Shai-Hulud Detector |
| 26 | + run: | |
| 27 | + chmod +x ./hulud/shai-hulud-detector.sh |
| 28 | + ./hulud/shai-hulud-detector.sh ./seb |
| 29 | +
|
| 30 | +
|
9 | 31 | build-and-push-admin-auto-test: |
10 | 32 | runs-on: ubuntu-latest |
11 | 33 | strategy: |
|
69 | 91 | uses: docker/build-push-action@v6.17.0 |
70 | 92 | with: |
71 | 93 | context: . |
72 | | - file: ./Dockerfile.storybook |
| 94 | + file: ./client/Dockerfile.storybook |
| 95 | + push: true |
| 96 | + tags: docker.io/${{ secrets.DOCKERHUB_ADMIN_USERNAME }}/seb-server-gui-storybook:${{ env.TAG_NAME }} |
| 97 | + |
| 98 | + build-and-push-e2e-runner: |
| 99 | + runs-on: ubuntu-latest |
| 100 | + needs: build-and-push-admin-auto-test |
| 101 | + |
| 102 | + steps: |
| 103 | + - name: Set env for dynamic tag |
| 104 | + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') |
| 105 | + run: echo "TAG_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV |
| 106 | + |
| 107 | + - name: Set env manual |
| 108 | + if: github.event_name == 'workflow_dispatch' |
| 109 | + run: echo "TAG_NAME=default_version" >> $GITHUB_ENV |
| 110 | + |
| 111 | + - name: Checkout code |
| 112 | + uses: actions/checkout@v4.2.2 |
| 113 | + |
| 114 | + - name: Login to DockerHub |
| 115 | + uses: docker/login-action@v3.4.0 |
| 116 | + with: |
| 117 | + username: ${{ secrets.DOCKERHUB_ADMIN_USERNAME }} |
| 118 | + password: ${{ secrets.DOCKERHUB_ADMIN_TOKEN }} |
| 119 | + |
| 120 | + - name: Build and push E2E runner image |
| 121 | + uses: docker/build-push-action@v6.17.0 |
| 122 | + with: |
| 123 | + context: . |
| 124 | + file: ./client/Dockerfile.e2e |
73 | 125 | push: true |
74 | | - tags: docker.io/${{ secrets.DOCKERHUB_ADMIN_USERNAME }}/storybook:${{ env.TAG_NAME }} |
| 126 | + tags: docker.io/${{ secrets.DOCKERHUB_ADMIN_USERNAME }}/seb-server-gui-e2e-runner:${{ env.TAG_NAME }} |
0 commit comments