SEBSERV-863 fixed consecutiveExamSelection #319
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Push to Docker Hub | |
| on: | |
| workflow_dispatch: | |
| # pull_request: | |
| # branches: [ "main" ] | |
| push: | |
| tags: | |
| - "**" | |
| jobs: | |
| shai-hulud-detector: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout seb-server-gui repo | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| path: seb | |
| clean: false | |
| - name: Checkout Cobenian/shai-hulud-detect | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| repository: Cobenian/shai-hulud-detect | |
| path: hulud | |
| clean: false | |
| - # Pipeline will automatically fail on exit codes 1 or 2 | |
| name: Security Scan with Shai-Hulud Detector | |
| run: | | |
| chmod +x ./hulud/shai-hulud-detector.sh | |
| ./hulud/shai-hulud-detector.sh ./seb | |
| build-and-push-admin: | |
| needs: shai-hulud-detector | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set env for dynamic tag | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
| run: echo "TAG_NAME=${GITHUB_REF#refs/*/}${{ matrix.tag_suffix }}" >> $GITHUB_ENV | |
| - name: Set env manual | |
| if: github.event_name == 'workflow_dispatch' | |
| run: echo "TAG_NAME=default_version${{ matrix.tag_suffix }}" >> $GITHUB_ENV | |
| - name: Checkout code | |
| uses: actions/checkout@v6.0.2 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v4.1.0 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_ADMIN_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_ADMIN_TOKEN }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v7.1.0 | |
| with: | |
| context: . | |
| push: true | |
| tags: docker.io/${{ secrets.DOCKERHUB_ADMIN_USERNAME }}/seb-server-gui:${{ env.TAG_NAME }} |