mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-03 19:41:52 +08:00
.
This commit is contained in:
parent
9c0ab2f2ef
commit
58768875ab
18
.github/workflows/build-publish-docker.yml
vendored
18
.github/workflows/build-publish-docker.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# because of using none default (conventionalcommits) `preset` for `semantic-release`, we should add dependency `conventional-changelog-conventionalcommits`
|
# because of using none default (conventionalcommits) `preset` for `semantic-release`, we should add dependency `conventional-changelog-conventionalcommits`
|
||||||
# using dry-run here for preventing publish release note and just calculate version
|
# using dry-run here for preventing publish release note and just calculate version
|
||||||
run: npx -p conventional-changelog-conventionalcommits -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/exec semantic-release --dry-run
|
run: npx -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/exec semantic-release --dry-run
|
||||||
|
|
||||||
- name: Semantic Release Versions Outputs
|
- name: Semantic Release Versions Outputs
|
||||||
run: |
|
run: |
|
||||||
@ -45,15 +45,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
docker build -t meysamh66/booking-microservices-flight:${{ env.TAG_NAME }} -f "${{ github.workspace }}/src/Services/Flight/Dockerfile" .
|
docker build -t meysamh66/booking-microservices-flight:latest -f "${{ github.workspace }}/src/Services/Flight/Dockerfile" .
|
||||||
docker build -t meysamh66/booking-microservices-identity:${{ env.TAG_NAME }} -f "${{ github.workspace }}/src/Services/Identity/Dockerfile" .
|
docker build -t meysamh66/booking-microservices-identity:latest -f "${{ github.workspace }}/src/Services/Identity/Dockerfile" .
|
||||||
docker build -t meysamh66/booking-microservices-passenger:${{ env.TAG_NAME }} -f "${{ github.workspace }}/src/Services/Passenger/Dockerfile" .
|
docker build -t meysamh66/booking-microservices-passenger:latest -f "${{ github.workspace }}/src/Services/Passenger/Dockerfile" .
|
||||||
docker build -t meysamh66/booking-microservices-booking:${{ env.TAG_NAME }} -f "${{ github.workspace }}/src/Services/Booking/Dockerfile" .
|
docker build -t meysamh66/booking-microservices-booking:latest -f "${{ github.workspace }}/src/Services/Booking/Dockerfile" .
|
||||||
|
|
||||||
- name: Publish image
|
- name: Publish image
|
||||||
run: |
|
run: |
|
||||||
docker push meysamh66/booking-microservices-flight:${{ env.TAG_NAME }}
|
docker push meysamh66/booking-microservices-flight:latest
|
||||||
docker push meysamh66/booking-microservices-identity:${{ env.TAG_NAME }}
|
docker push meysamh66/booking-microservices-identity:latest
|
||||||
docker push meysamh66/booking-microservices-passenger:${{ env.TAG_NAME }}
|
docker push meysamh66/booking-microservices-passenger:latest
|
||||||
docker push meysamh66/booking-microservices-booking:${{ env.TAG_NAME }}
|
docker push meysamh66/booking-microservices-booking:latest
|
||||||
|
|
||||||
|
|||||||
33
.github/workflows/conventional-commits.yml
vendored
33
.github/workflows/conventional-commits.yml
vendored
@ -1,33 +0,0 @@
|
|||||||
name: Conventional Commits
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
conventional-commits:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: check-pull-request-conventional-commits
|
|
||||||
uses: amannn/action-semantic-pull-request@v5
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- uses: fuxingloh/multi-labeler@v1
|
|
||||||
name: conventional-commits-pull-request-labeler
|
|
||||||
if: success()
|
|
||||||
with:
|
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}} # optional, default to '${{ github.token }}'
|
|
||||||
config-path: .github/multi-labeler.yml # optional, default to '.github/labeler.yml'
|
|
||||||
|
|
||||||
# https://docs.github.com/en/actions/using-workflows/about-workflows#creating-dependent-jobs
|
|
||||||
# https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow
|
|
||||||
- name: check-conventional-commits-labels
|
|
||||||
uses: docker://agilepathway/pull-request-label-checker:latest
|
|
||||||
if: success()
|
|
||||||
with:
|
|
||||||
any_of : feature,bug,enhancement,deprecated,security,documentation,build,ci/cd,chore,performance,formatting,dependencies
|
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user