diff --git a/.github/workflows/build-publish-docker.yml b/.github/workflows/build-publish-docker.yml index 5465e22..f418cbb 100644 --- a/.github/workflows/build-publish-docker.yml +++ b/.github/workflows/build-publish-docker.yml @@ -26,7 +26,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 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 - 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 run: | @@ -45,15 +45,15 @@ jobs: - name: Build image run: | - docker build -t meysamh66/booking-microservices-flight:${{ env.TAG_NAME }} -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-passenger:${{ env.TAG_NAME }} -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-flight:latest -f "${{ github.workspace }}/src/Services/Flight/Dockerfile" . + docker build -t meysamh66/booking-microservices-identity:latest -f "${{ github.workspace }}/src/Services/Identity/Dockerfile" . + docker build -t meysamh66/booking-microservices-passenger:latest -f "${{ github.workspace }}/src/Services/Passenger/Dockerfile" . + docker build -t meysamh66/booking-microservices-booking:latest -f "${{ github.workspace }}/src/Services/Booking/Dockerfile" . - name: Publish image run: | - docker push meysamh66/booking-microservices-flight:${{ env.TAG_NAME }} - docker push meysamh66/booking-microservices-identity:${{ env.TAG_NAME }} - docker push meysamh66/booking-microservices-passenger:${{ env.TAG_NAME }} - docker push meysamh66/booking-microservices-booking:${{ env.TAG_NAME }} + docker push meysamh66/booking-microservices-flight:latest + docker push meysamh66/booking-microservices-identity:latest + docker push meysamh66/booking-microservices-passenger:latest + docker push meysamh66/booking-microservices-booking:latest diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml deleted file mode 100644 index 160f717..0000000 --- a/.github/workflows/conventional-commits.yml +++ /dev/null @@ -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 }}