Skip to content

fix(service invocation) : Adding missing endcollapsible tag #22

fix(service invocation) : Adding missing endcollapsible tag

fix(service invocation) : Adding missing endcollapsible tag #22

on:
push:
branches:
- master
name: Build and Push all services images to ACR and DockerHub && update staging guide
jobs:
services-builder:
strategy:
matrix:
service:
[
"stock-manager",
"receipt-generator",
"command-frontend",
"command-api",
"order-processing",
]
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: "Checkout GitHub Action"
uses: actions/checkout@main
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v1
# - name: "Login to ACR"
# uses: docker/login-action@v1
# with:
# registry: ${{ secrets.REGISTRY_LOGIN_SERVER }}
# username: ${{ secrets.REGISTRY_USERNAME }}
# password: ${{ secrets.REGISTRY_PASSWORD }}
- name: "Login to Dockerhub"
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: "Build and push"
uses: docker/build-push-action@v3
with:
context: ./src/Lab2/implementations/${{ matrix.service }}
push: true
tags: |
${{ secrets.REGISTRY_LOGIN_SERVER }}/${{ matrix.service }}:latest
dockerutils/${{ matrix.service }}:latest
update-staging-guide:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.0"
- run: gem update --system
- run: gem install jekyll
- run: jekyll build
working-directory: ./instructions
- uses: tibor19/static-website-deploy@v1
with:
enabled-static-website: "true"
folder: "instructions/_site"
connection-string: ${{ secrets.STATIC_WEBSITE_STAGING_CONNECTION_STRING }}