Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ jobs:
services-image-build:
runs-on: ubuntu-latest
needs: deploy
if: github.event.pull_request.head.repo.full_name == github.repository

strategy:
matrix:
Expand All @@ -513,14 +512,19 @@ jobs:

- name: Build Docker images
run: |
# defines image tag
if [[ $GITHUB_REF == refs/tags/* ]]; then IMAGE_TAG="${GITHUB_REF#refs/tags/}"; else IMAGE_TAG="${GITHUB_REF#refs/heads/}"; fi

# first install repo dependencies
npm i

# then micro services dependencies
cd ./ee/server/services
npm i
npm run build

echo "Building Docker image for service: ${{ matrix.service }}"
echo "Building Docker image for service: ${{ matrix.service }}:${IMAGE_TAG}"

docker build --build-arg SERVICE=${{ matrix.service }} -t rocketchat/${{ matrix.service }}-service .
docker build --build-arg SERVICE=${{ matrix.service }} -t rocketchat/${{ matrix.service }}-service:${IMAGE_TAG} .

docker push rocketchat/${{ matrix.service }}-service