File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : auto-test.yml
2-
1+ name : auto-test-and-document.yml
32on :
43 workflow_dispatch :
5- # pull_request:
6- # branches: [ "main" ]
74 push :
85 tags :
9- - ' ** '
6+ - " auto-testing "
107
118jobs :
12- build-and-push :
13- runs-on : ubuntu-latest
14- strategy :
15- matrix :
16- tag_suffix : ["", "-single-host"]
17- include :
18- - tag_suffix : " "
19- path_name : " "
20- - tag_suffix : " -single-host"
21- path_name : " /seb-server-gui"
22-
23- steps :
24- - name : Set env for dynamic tag
25- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
26- run : echo "TAG_NAME=${GITHUB_REF#refs/*/}${{ matrix.tag_suffix }}" >> $GITHUB_ENV
27-
28- - name : Set env manual
29- if : github.event_name == 'workflow_dispatch'
30- run : echo "TAG_NAME=default_version${{ matrix.tag_suffix }}" >> $GITHUB_ENV
31-
32- - name : Checkout code
33- uses : actions/checkout@v4.2.2
34-
35- - name : Login to DockerHub
36- uses : docker/login-action@v3.4.0
37- with :
38- username : naritter
39- password : ${{ secrets.DOCKERHUB_PASSWORD}}
40-
41- - name : Build and push Docker image
42- uses : docker/build-push-action@v6.17.0
43- with :
44- context : .
45- push : true
46- tags : docker.io/naritter/seb-server-gui:${{ env.TAG_NAME }}
47- build-args : VITE_SUB_PATH=${{ matrix.path_name }}
48-
499 build-and-push-admin :
5010 runs-on : ubuntu-latest
5111 strategy :
8040 with :
8141 context : .
8242 push : true
83- tags : docker.io/${{ secrets.DOCKERHUB_ADMIN_USERNAME }}/seb-server-gui:${{ env.TAG_NAME }}
43+ tags : docker.io/${{ secrets.DOCKERHUB_ADMIN_USERNAME }}/seb-server-gui-auto-testing :${{ env.TAG_NAME }}
8444 build-args : VITE_SUB_PATH=${{ matrix.path_name }}
You can’t perform that action at this time.
0 commit comments