-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nadim Ritter
committed
Sep 25, 2024
1 parent
012d857
commit fbfe81f
Showing
5 changed files
with
60 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
tag_name: [test1, test2] | ||
path_name: ["", "/sps-gui", "/proctoring-gui"], | ||
tag_suffix: ["", "single-host", "single-host2"], | ||
|
||
steps: | ||
- name: Set env for dynamic tag | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
run: echo "TAG_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
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=${{ matrix.tag_name }}" >> $GITHUB_ENV | ||
run: echo "TAG_NAME=default_version-${{ matrix.tag_suffix }}" >> $GITHUB_ENV | ||
|
||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
@@ -30,11 +32,13 @@ jobs: | |
uses: docker/[email protected] | ||
with: | ||
username: naritter | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD}} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
push: true | ||
tags: docker.io/naritter/seb-sps-gui:${{ env.TAG_NAME }} | ||
build-args: | ||
VITE_SUB_PATH: ${{ matrix.path_name }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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