-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (66 loc) · 2.13 KB
/
build-push-services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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 }}