forked from wildfly/wildfly-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.67 KB
/
go.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
name: Go
env:
REGISTRY: quay.io
REGISTRY_USER: "wildfly+github_actions"
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_ROBOT_PASSWORD }}
on:
push:
branches: [ main, 0.5.x ]
pull_request:
branches: [ main, 0.5.x ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.3
- name: Build
run: make build
- name: Set up Minikube
uses: manusa/[email protected]
with:
minikube version: v1.31.2
kubernetes version: v1.25.0
driver: docker
- name: Load WildFly images used for testing
run: |-
minikube image load --pull=true quay.io/wildfly-quickstarts/wildfly-operator-quickstart:18.0
minikube image load --pull=true quay.io/wildfly-quickstarts/wildfly-operator-quickstart:bootable-21.0
minikube image load --pull=true quay.io/wildfly-quickstarts/clusterbench:latest
- name: Containerized End-to-End Tests
run: eval $(minikube -p minikube docker-env) && make test-e2e-minikube
- name: Docker Login to Quay.io (main only)
uses: docker/[email protected]
if: github.ref == 'refs/heads/main'
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
- name: Build and Push Image (main only)
if: github.ref == 'refs/heads/main'
run: make manifests docker-build docker-push
- name: Push documentation to gh-pages (main only)
uses: manoelcampos/asciidoctor-ghpages-action@v2
if: github.ref == 'refs/heads/main'
with:
source_dir: ./doc