-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christian Kotzbauer <[email protected]>
- Loading branch information
1 parent
cc13944
commit 136a741
Showing
2 changed files
with
42 additions
and
8 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 |
---|---|---|
|
@@ -13,15 +13,19 @@ jobs: | |
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Kubebuilder | ||
uses: RyanSiu1995/[email protected] | ||
with: | ||
version: 3.1.0 | ||
|
||
- name: Execute Tests | ||
run: make test | ||
|
||
|
||
e2e-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -36,31 +40,61 @@ jobs: | |
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17' | ||
|
||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
image: tonistiigi/binfmt:latest | ||
platforms: all | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- uses: azure/setup-kubectl@v1 | ||
with: | ||
version: 'v${{ matrix.kubernetes-version }}' | ||
|
||
- name: Execute Tests | ||
run: make e2e-test -e K8S_VERSION=${{ matrix.kubernetes-version }} | ||
|
||
|
||
build-image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17' | ||
|
||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
image: tonistiigi/binfmt:latest | ||
platforms: all | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build docker-image | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
|
||
- name: Build image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
name: ckotzbauer/access-manager | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
tags: "latest" | ||
no_push: true | ||
context: . | ||
push: false | ||
load: true | ||
platforms: linux/amd64 | ||
tags: | | ||
ckotzbauer/access-manager:latest | ||
- name: Container scan | ||
uses: azure/container-scan@v0 | ||
with: | ||
|
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