mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-26 15:51:08 +08:00
.
This commit is contained in:
parent
214ddd325e
commit
f9780be574
40
.github/workflows/build-publish-docker.yml
vendored
40
.github/workflows/build-publish-docker.yml
vendored
@ -3,8 +3,6 @@ name: build-publish-docker
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -16,16 +14,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v4
|
|
||||||
with:
|
|
||||||
flavor: latest=true
|
|
||||||
tags: |
|
|
||||||
type=ref,event=branch
|
|
||||||
type=ref,event=pr
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@ -39,23 +27,15 @@ jobs:
|
|||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./src/Services/Flight/Dockerfile
|
file: |
|
||||||
|
./src/Services/Flight/Dockerfile
|
||||||
|
./src/Services/Identity/Dockerfile
|
||||||
|
./src/Services/Passenger/Dockerfile
|
||||||
|
./src/Services/Booking/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/booking-microservices-flight:${{ steps.meta.outputs.tags }}
|
tags: |
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
${{ secrets.DOCKERHUB_USERNAME }}/booking-microservices-flight:latest
|
||||||
|
${{ secrets.DOCKERHUB_USERNAME }}/booking-microservices-identity:latest
|
||||||
|
${{ secrets.DOCKERHUB_USERNAME }}/booking-microservices-passenger:latest
|
||||||
# - name: Build image
|
${{ secrets.DOCKERHUB_USERNAME }}/booking-microservices-booking:latest
|
||||||
# run: |
|
|
||||||
# docker build -t meysamh66/booking-microservices-flight:${{ steps.version.outputs.version }} -f "${{ github.workspace }}/src/Services/Flight/Dockerfile" .
|
|
||||||
# docker build -t meysamh66/booking-microservices-identity:${{ steps.version.outputs.version }} -f "${{ github.workspace }}/src/Services/Identity/Dockerfile" .
|
|
||||||
# docker build -t meysamh66/booking-microservices-passenger:${{ steps.version.outputs.version }} -f "${{ github.workspace }}/src/Services/Passenger/Dockerfile" .
|
|
||||||
# docker build -t meysamh66/booking-microservices-booking:${{ steps.version.outputs.version }} -f "${{ github.workspace }}/src/Services/Booking/Dockerfile" .
|
|
||||||
#
|
|
||||||
# - name: Publish image
|
|
||||||
# run: |
|
|
||||||
# docker push meysamh66/booking-microservices-flight:${{ steps.version.outputs.version }}
|
|
||||||
# docker push meysamh66/booking-microservices-identity:${{ steps.version.outputs.version }}
|
|
||||||
# docker push meysamh66/booking-microservices-passenger:${{ steps.version.outputs.version }}
|
|
||||||
# docker push meysamh66/booking-microservices-booking:${{ steps.version.outputs.version }}
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user