-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1.24 KB
/
master-build.yaml
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
name: Build metrics-provider
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-external-scaler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: balchua/[email protected]
with:
channel: '1.19/candidate'
addons: '["dns", "rbac", "storage"]'
- name: Get Skaffold
env:
KUBECONFIG: /tmp/config
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && chmod uo+x skaffold && sudo mv skaffold /usr/local/bin
skaffold version
- name: Enable Helm addon
run: |
sudo microk8s.enable helm3
- name: Build and install ActiveMQ Artemis and metrics-provider
env:
REGCRED: ${{ secrets.regcred }}
run: |
mkdir -p ~/.docker/
echo $REGCRED > ~/.docker/config.json
kubectl create ns artemis
kubectl -n artemis create secret generic regcred --from-file ~/.docker/config.json
skaffold -v trace --cache-artifacts=false run -p metrics-provider
kubectl -n artemis wait --for=condition=available --timeout=600s deployment/artemis-activemq -n artemis
kubectl -n artemis get pods -o wide