-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/release-1.7' into sync-upstrea…
…m-release-1.7
- Loading branch information
Showing
20 changed files
with
218 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
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-18.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
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 "::set-output name=VERSION_TAG::$(git describe --dirty --always --tags | sed 's/-/./2' | sed 's/-/./2' )" | ||
id: tagger | ||
- name: Login to Docker | ||
uses: docker/login-action@v1 | ||
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/[email protected] | ||
with: | ||
channel: master | ||
version: current | ||
command: build configuration -f docs/snippets/package/aws --name=getting-started-with-aws.xpkg | ||
- name: Push | ||
uses: crossplane-contrib/[email protected] | ||
with: | ||
command: push configuration -f docs/snippets/package/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-18.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- name: Set tag | ||
run: echo "::set-output name=VERSION_TAG::$(git describe --dirty --always --tags | sed 's/-/./2' | sed 's/-/./2' )" | ||
id: tagger | ||
- name: Login to Docker | ||
uses: docker/login-action@v1 | ||
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/[email protected] | ||
with: | ||
channel: master | ||
version: current | ||
command: build configuration -f docs/snippets/package/aws-with-vpc --name=getting-started-with-aws-with-vpc.xpkg | ||
- name: Push | ||
uses: crossplane-contrib/[email protected] | ||
with: | ||
command: push configuration -f docs/snippets/package/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-18.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- name: Set tag | ||
run: echo "::set-output name=VERSION_TAG::$(git describe --dirty --always --tags | sed 's/-/./2' | sed 's/-/./2' )" | ||
id: tagger | ||
- name: Login to Docker | ||
uses: docker/login-action@v1 | ||
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/[email protected] | ||
with: | ||
channel: master | ||
version: current | ||
command: build configuration -f docs/snippets/package/gcp --name=getting-started-with-gcp.xpkg | ||
- name: Push | ||
uses: crossplane-contrib/[email protected] | ||
with: | ||
command: push configuration -f docs/snippets/package/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-18.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- name: Set tag | ||
run: echo "::set-output name=VERSION_TAG::$(git describe --dirty --always --tags | sed 's/-/./2' | sed 's/-/./2' )" | ||
id: tagger | ||
- name: Login to Docker | ||
uses: docker/login-action@v1 | ||
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/[email protected] | ||
with: | ||
channel: master | ||
version: current | ||
command: build configuration -f docs/snippets/package/azure --name=getting-started-with-azure.xpkg | ||
- name: Push | ||
uses: crossplane-contrib/[email protected] | ||
with: | ||
command: push configuration -f docs/snippets/package/azure/getting-started-with-azure.xpkg registry.upbound.io/xp/getting-started-with-azure:${{ steps.tagger.outputs.VERSION_TAG }} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.