doc(readme): Updating both staging andproduction workshop public urls #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- name: "Build and push" | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./src/Lab2/implementations/${{ matrix.service }} | |
push: true | |
tags: | | |
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 }} |