Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raffomania committed Jan 31, 2024
1 parent 12dfe08 commit e4407c6
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build_release:
if: github.ref == 'refs/heads/mwp_v1'
# if: github.ref == 'refs/heads/mwp_v1'
name: build_release
runs-on: ubuntu-latest
steps:
Expand All @@ -22,27 +22,34 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get version from tag
id: extract_version
run: |
echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
shell: bash

- name: Build and push backend container
uses: docker/build-push-action@v4
with:
context: ./backend
push: true
# push: true
tags: |
"uhhlt/dwts_backend:${{ github.ref_name }}"
"uhhlt/dwts_backend:${{ steps.extract_version.outputs.version }}"
- name: Build and push frontend container
uses: docker/build-push-action@v4
with:
context: ./frontend
push: true
# push: true
tags: |
"uhhlt/dwts_frontend:${{ github.ref_name }}"
"uhhlt/dwts_frontend:${{ steps.extract_version.outputs.version }}"
- name: Build and push ray container
uses: docker/build-push-action@v4
with:
context: ./backend/src/app/preprocessing/ray_model_worker
push: true
# push: true
tags: |
"uhhlt/dwts_ray:${{ github.ref_name }}"
"uhhlt/dwts_ray:${{ steps.extract_version.outputs.version }}"
- name: Create Release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit e4407c6

Please sign in to comment.