Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Feat(CountryRisk): Add backend git hub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiodmota committed Apr 15, 2024
1 parent 7bb73c9 commit 5f265eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-hub-build-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ name: Build Backend - Docker image (SemVer)

on:
push:
branches:
- main
# trigger events for SemVer like tags
tags:
- 'v*.*.*'
- 'v*.*.*-*'
pull_request:
branches:
- main


env:
IMAGE_NAMESPACE: "tractusx"
IMAGE_NAME: "vas-country-risk-backend"
Expand Down Expand Up @@ -66,7 +71,7 @@ jobs:
uses: peter-evans/dockerhub-description@v4
with:
# readme-filepath defaults to toplevel README.md, Only necessary if you have a dedicated file with your 'Notice for docker images'
readme-filepath: DOCKER_NOTICE.md
readme-filepath: ./backend/DOCKER_NOTICE.md
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
repository: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
9 changes: 8 additions & 1 deletion .github/workflows/docker-hub-build-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ name: Build Frontend - Docker image (SemVer)

on:
push:
branches:
- main
# trigger events for SemVer like tags
tags:
- 'v*.*.*'
- 'v*.*.*-*'
pull_request:
branches:
- main
Expand All @@ -29,6 +35,7 @@ jobs:

- name: Add content to Legal Notice
run: npm run build:legal-notice
working-directory: frontend

# Create SemVer or ref tags dependent of trigger event
- name: Docker meta
Expand Down Expand Up @@ -73,7 +80,7 @@ jobs:
uses: peter-evans/dockerhub-description@v3
with:
# readme-filepath defaults to toplevel README.md, Only necessary if you have a dedicated file with your 'Notice for docker images'
readme-filepath: DOCKER_NOTICE.md
readme-filepath: ./frontend/DOCKER_NOTICE.md
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
repository: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}

0 comments on commit 5f265eb

Please sign in to comment.