Skip to content

Commit 8688f5f

Browse files
anoopcs9phlogistonjohn
authored andcommitted
CI: Run tests for AD server based on nightly Samba RPMs
1 parent 6f9a2ea commit 8688f5f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/container-image.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ jobs:
7777
- name: Build the nightly server image
7878
run: make build-nightly-server
7979

80+
build-nightly-ad-server:
81+
runs-on: ubuntu-latest
82+
env:
83+
BUILDAH_FORMAT: oci
84+
steps:
85+
- uses: actions/checkout@v2
86+
- name: Build the nightly ad server image
87+
run: make build-nightly-ad-server
88+
8089
test-nightly-server:
8190
#needs: build-nightly-server
8291
runs-on: ubuntu-latest
@@ -105,12 +114,35 @@ jobs:
105114
- name: run the ad-dc deployment test
106115
run: ./tests/test-samba-ad-server-kubernetes.sh
107116

117+
test-nightly-ad-server-kubernetes:
118+
#runs-on: ubuntu-latest
119+
# need to explicitly use 20.04 to avoid problems with jq...
120+
runs-on: ubuntu-20.04
121+
env:
122+
IMG_TAG: nightly
123+
steps:
124+
- uses: actions/checkout@v2
125+
- uses: nolar/setup-k3d-k3s@v1
126+
- name: get nodes
127+
run: kubectl get nodes
128+
- name: build nighlty ad container
129+
run: make CONTAINER_CMD=docker build-nightly-ad-server
130+
- name: import nighlty ad server image
131+
run: k3d image import samba-ad-container:nightly
132+
- name: build nightly file server container
133+
run: make CONTAINER_CMD=docker build-nightly-server
134+
- name: import nightly file server image
135+
run: k3d image import samba-container:nightly
136+
- name: run the ad-dc deployment test
137+
run: ./tests/test-samba-ad-server-kubernetes.sh
138+
108139
push:
109140
# verify it passes the test jobs first
110141
needs:
111142
- test-server
112143
- test-nightly-server
113144
- test-ad-server-kubernetes
145+
- test-nightly-ad-server-kubernetes
114146
runs-on: ubuntu-latest
115147
if: (github.event_name == 'push' || github.event_name == 'schedule') && github.repository == 'samba-in-kubernetes/samba-container'
116148
env:
@@ -128,3 +160,5 @@ jobs:
128160
run: make push-client
129161
- name: push nightly server image
130162
run: make push-nightly-server
163+
- name: push nightly ad server image
164+
run: make push-nightly-ad-server

0 commit comments

Comments
 (0)