mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-30 18:15:46 +08:00
commit
78b91ee1b4
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -9,7 +9,6 @@ on:
|
|||||||
branches: [ "main" , "develop" ]
|
branches: [ "main" , "develop" ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "README.md"
|
- "README.md"
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -39,9 +38,12 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test -c Release --no-restore
|
run: dotnet test -c Release --no-restore
|
||||||
|
|
||||||
- name: Call Update Release Drafter
|
- name: Update Release Drafter
|
||||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
uses: meysamhadeli/booking-microservices/.github/workflows/reusable-release-drafter.yml@main
|
id: last_release
|
||||||
|
uses: release-drafter/release-drafter@v5
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
##ref: https://docs.docker.com/language/golang/configure-ci-cd/
|
##ref: https://docs.docker.com/language/golang/configure-ci-cd/
|
||||||
##ref: https://event-driven.io/en/how_to_buid_and_push_docker_image_with_github_actions
|
##ref: https://event-driven.io/en/how_to_buid_and_push_docker_image_with_github_actions
|
||||||
@ -49,6 +51,7 @@ jobs:
|
|||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
with:
|
with:
|
||||||
|
registry: _
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
|
||||||
|
|||||||
28
.github/workflows/reusable-release-drafter.yml
vendored
28
.github/workflows/reusable-release-drafter.yml
vendored
@ -1,28 +0,0 @@
|
|||||||
name: Reusable Release Drafter
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "main" , "develop" ]
|
|
||||||
paths-ignore:
|
|
||||||
- "README.md"
|
|
||||||
pull_request:
|
|
||||||
branches: [ "main" , "develop" ]
|
|
||||||
paths-ignore:
|
|
||||||
- "README.md"
|
|
||||||
workflow_call:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Update Release Drafter
|
|
||||||
if: ${{ github.ref == 'refs/heads/main'}}
|
|
||||||
id: last_release
|
|
||||||
uses: release-drafter/release-drafter@v5
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user