forked from crossplane/crossplane
-
Notifications
You must be signed in to change notification settings - Fork 0
134 lines (128 loc) · 5.69 KB
/
configurations.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: Configurations
on:
push:
branches:
- master
- release-*
workflow_dispatch: {}
env:
DOCKER_USR: ${{ secrets.UPBOUND_XP_ROBOT_USR }}
jobs:
getting-started-with-aws:
runs-on: ubuntu-22.04
if: github.repository == 'crossplane/crossplane'
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
submodules: true
fetch-depth: 0
# The tagger step uses the same logic in the build submodule to generate package tag
# https://github.com/upbound/build/blob/4f64913157a952dbe77cd9e05457d9abe695a1d4/makelib/common.mk#L193
- name: Set tag
run: echo "VERSION_TAG=$(git describe --dirty --always --tags | sed 's/-/./2' | sed 's/-/./2' )" >> $GITHUB_OUTPUT
id: tagger
- name: Login to Docker
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: env.DOCKER_USR != ''
with:
registry: registry.upbound.io
username: ${{ secrets.UPBOUND_XP_ROBOT_USR }}
password: ${{ secrets.UPBOUND_XP_ROBOT_PSW }}
- name: Build
uses: crossplane-contrib/xpkg-action@1696d9091687aad2895436cb5656faa956628b0f # v0.2.0
with:
channel: master
version: current
command: build configuration -f cluster/packages/aws --name=getting-started-with-aws.xpkg
- name: Push
uses: crossplane-contrib/xpkg-action@1696d9091687aad2895436cb5656faa956628b0f # v0.2.0
with:
command: push configuration -f cluster/packages/aws/getting-started-with-aws.xpkg registry.upbound.io/xp/getting-started-with-aws:${{ steps.tagger.outputs.VERSION_TAG }}
getting-started-with-aws-with-vpc:
runs-on: ubuntu-22.04
if: github.repository == 'crossplane/crossplane'
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
submodules: true
fetch-depth: 0
- name: Set tag
run: echo "VERSION_TAG=$(git describe --dirty --always --tags | sed 's/-/./2' | sed 's/-/./2' )" >> $GITHUB_OUTPUT
id: tagger
- name: Login to Docker
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: env.DOCKER_USR != ''
with:
registry: registry.upbound.io
username: ${{ secrets.UPBOUND_XP_ROBOT_USR }}
password: ${{ secrets.UPBOUND_XP_ROBOT_PSW }}
- name: Build
uses: crossplane-contrib/xpkg-action@1696d9091687aad2895436cb5656faa956628b0f # v0.2.0
with:
channel: master
version: current
command: build configuration -f cluster/packages/aws-with-vpc --name=getting-started-with-aws-with-vpc.xpkg
- name: Push
uses: crossplane-contrib/xpkg-action@1696d9091687aad2895436cb5656faa956628b0f # v0.2.0
with:
command: push configuration -f cluster/packages/aws-with-vpc/getting-started-with-aws-with-vpc.xpkg registry.upbound.io/xp/getting-started-with-aws-with-vpc:${{ steps.tagger.outputs.VERSION_TAG }}
getting-started-with-gcp:
runs-on: ubuntu-22.04
if: github.repository == 'crossplane/crossplane'
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
submodules: true
fetch-depth: 0
- name: Set tag
run: echo "VERSION_TAG=$(git describe --dirty --always --tags | sed 's/-/./2' | sed 's/-/./2' )" >> $GITHUB_OUTPUT
id: tagger
- name: Login to Docker
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: env.DOCKER_USR != ''
with:
registry: registry.upbound.io
username: ${{ secrets.UPBOUND_XP_ROBOT_USR }}
password: ${{ secrets.UPBOUND_XP_ROBOT_PSW }}
- name: Build
uses: crossplane-contrib/xpkg-action@1696d9091687aad2895436cb5656faa956628b0f # v0.2.0
with:
channel: master
version: current
command: build configuration -f cluster/packages/gcp --name=getting-started-with-gcp.xpkg
- name: Push
uses: crossplane-contrib/xpkg-action@1696d9091687aad2895436cb5656faa956628b0f # v0.2.0
with:
command: push configuration -f cluster/packages/gcp/getting-started-with-gcp.xpkg registry.upbound.io/xp/getting-started-with-gcp:${{ steps.tagger.outputs.VERSION_TAG }}
getting-started-with-azure:
runs-on: ubuntu-22.04
if: github.repository == 'crossplane/crossplane'
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
submodules: true
fetch-depth: 0
- name: Set tag
run: echo "VERSION_TAG=$(git describe --dirty --always --tags | sed 's/-/./2' | sed 's/-/./2' )" >> $GITHUB_OUTPUT
id: tagger
- name: Login to Docker
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
if: env.DOCKER_USR != ''
with:
registry: registry.upbound.io
username: ${{ secrets.UPBOUND_XP_ROBOT_USR }}
password: ${{ secrets.UPBOUND_XP_ROBOT_PSW }}
- name: Build
uses: crossplane-contrib/xpkg-action@1696d9091687aad2895436cb5656faa956628b0f # v0.2.0
with:
channel: master
version: current
command: build configuration -f cluster/packages/azure --name=getting-started-with-azure.xpkg
- name: Push
uses: crossplane-contrib/xpkg-action@1696d9091687aad2895436cb5656faa956628b0f # v0.2.0
with:
command: push configuration -f cluster/packages/azure/getting-started-with-azure.xpkg registry.upbound.io/xp/getting-started-with-azure:${{ steps.tagger.outputs.VERSION_TAG }}