File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 chmod +x ./hulud/shai-hulud-detector.sh
3030 ./hulud/shai-hulud-detector.sh ./seb
3131
32- build-and-push :
33- needs : shai-hulud-detector
34- runs-on : ubuntu-latest
35- strategy :
36- matrix :
37- tag_suffix : ["", "-single-host"]
38- include :
39- - tag_suffix : " "
40- path_name : " "
41- - tag_suffix : " -single-host"
42- path_name : " /seb-server-gui"
43-
44- steps :
45- - name : Set env for dynamic tag
46- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
47- run : echo "TAG_NAME=${GITHUB_REF#refs/*/}${{ matrix.tag_suffix }}" >> $GITHUB_ENV
48-
49- - name : Set env manual
50- if : github.event_name == 'workflow_dispatch'
51- run : echo "TAG_NAME=default_version${{ matrix.tag_suffix }}" >> $GITHUB_ENV
52-
53- - name : Checkout code
54- uses : actions/checkout@v6.0.2
55-
56- - name : Login to DockerHub
57- uses : docker/login-action@v4.1.0
58- with :
59- username : naritter
60- password : ${{ secrets.DOCKERHUB_PASSWORD}}
61-
62- - name : Build and push Docker image
63- uses : docker/build-push-action@v7.1.0
64- with :
65- context : .
66- push : true
67- tags : docker.io/naritter/seb-server-gui:${{ env.TAG_NAME }}
68-
6932 build-and-push-admin :
7033 needs : shai-hulud-detector
7134 runs-on : ubuntu-latest
72- strategy :
73- matrix :
74- tag_suffix : ["", "-single-host"]
75- include :
76- - tag_suffix : " "
77- path_name : " "
78- - tag_suffix : " -single-host"
79- path_name : " /seb-server-gui"
8035
8136 steps :
8237 - name : Set env for dynamic tag
You can’t perform that action at this time.
0 commit comments