Skip to content

Commit 46ee216

Browse files
committed
Client: create auto test pipelines
1 parent b154354 commit 46ee216

2 files changed

Lines changed: 3 additions & 126 deletions

File tree

.github/workflows/auto-test-and-document.yml

Lines changed: 0 additions & 83 deletions
This file was deleted.

.github/workflows/auto-test.yml

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,11 @@
1-
name: auto-test.yml
2-
1+
name: auto-test-and-document.yml
32
on:
43
workflow_dispatch:
5-
# pull_request:
6-
# branches: [ "main" ]
74
push:
85
tags:
9-
- '**'
6+
- "auto-testing"
107

118
jobs:
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:
@@ -80,5 +40,5 @@ jobs:
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 }}

0 commit comments

Comments
 (0)