-
Notifications
You must be signed in to change notification settings - Fork 23
47 lines (38 loc) · 1.27 KB
/
upgrade-subctl.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
---
name: Upgrade command
on:
pull_request:
branches: [release-0.19]
permissions: {}
jobs:
upgrade-command:
name: subctl upgrade command
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
using: ['', 'globalnet,lighthouse']
steps:
- name: Check out the subctl repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Check out the shipyard repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
repository: submariner-io/shipyard
path: shipyard
ref: ${{ github.base_ref }}
- name: Deploy old environment
run: make deploy-latest using="${{ matrix.using }}"
- name: Build new subctl
run: make cmd/bin/subctl
- name: Run upgrade command and check versions after upgrade
run: |
export KUBECONFIG=$(find $(git rev-parse --show-toplevel)/output/kubeconfigs/ -type f -printf %p:)
cmd/bin/subctl upgrade
cmd/bin/subctl version && cmd/bin/subctl show versions
- name: Run e2e tests
run: make e2e
- name: Post mortem
if: failure()
uses: submariner-io/shipyard/gh-actions/post-mortem@release-0.19