refact publish.yaml
@@ -11,8 +11,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- - name: Build components (binaries)
- run: make build/all-components
- name: Get the version (release tag)
run: echo "IMAGE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Set up Docker Buildx
@@ -28,30 +26,6 @@ jobs:
uses: docker/build-push-action@v2
with:
context: ./
- file: ./docker/management-api/Dockerfile
+ file: ./Dockerfile
push: true
- tags: quay.io/tfgco/maestro:management-api-${{ env.IMAGE_VERSION }}
- - name: Build and push - Rooms API
- if: ${{ env.IMAGE_VERSION != 'main' }}
- uses: docker/build-push-action@v2
- with:
- context: ./
- file: ./docker/rooms-api/Dockerfile
- push: true
- tags: quay.io/tfgco/maestro:rooms-api-${{ env.IMAGE_VERSION }}
- - name: Build and push - Runtime Watcher
- if: ${{ env.IMAGE_VERSION != 'main' }}
- uses: docker/build-push-action@v2
- with:
- context: ./
- file: ./docker/runtime-watcher/Dockerfile
- push: true
- tags: quay.io/tfgco/maestro:runtime-watcher-${{ env.IMAGE_VERSION }}
- - name: Build and push - Worker
- if: ${{ env.IMAGE_VERSION != 'main' }}
- uses: docker/build-push-action@v2
- with:
- context: ./
- file: ./docker/worker/Dockerfile
- push: true
- tags: quay.io/tfgco/maestro:worker-${{ env.IMAGE_VERSION }}
\ No newline at end of file
+ tags: quay.io/tfgco/maestro:${{ env.IMAGE_VERSION }}
\ No newline at end of file
