You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ki...@apache.org on 2020/07/24 21:37:43 UTC

[trafficserver-ingress-controller] branch master updated: Build and Integrate (#18)

This is an automated email from the ASF dual-hosted git repository.

kichan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 1afc6e4  Build and Integrate (#18)
1afc6e4 is described below

commit 1afc6e400ce256b15ecb700da12a208802a8dd3b
Author: Rishabh Chhabra <ri...@gmail.com>
AuthorDate: Fri Jul 24 16:37:34 2020 -0500

    Build and Integrate (#18)
    
    * Updates permissions for build-master.sh
    
    * Replaces quay credentials with apache dockerhub
    
    * Adds execute permissions to build-master
    
    * Adds build and integrate script. Removes build master
---
 .github/workflows/build.yml | 50 +++++++++++++++++++++++++++++++++++++--------
 build-master.sh             | 10 ---------
 2 files changed, 41 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 244ac12..cc48cdb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,4 +1,4 @@
-name: Build
+name: Build and Integrate
 
 on:
   push:
@@ -6,13 +6,45 @@ on:
       - 'master'
 
 jobs:
-  build:
+  build-and-integrate:
     runs-on: ubuntu-latest
+
     steps:
-    - name: Checkout repository
-      uses: actions/checkout@v2
-    - name: Build and push
-      run: ./build-master.sh
-      env:
-        DOCKERHUB_USER: ${{  secrets.DOCKERHUB_USER }}
-        DOCKERHUB_TOKEN: ${{  secrets.DOCKERHUB_TOKEN }}
\ No newline at end of file
+      - name: Checkout
+        uses: actions/checkout@v1
+        with:
+          submodules: 'true'
+
+      - name: Setup Minikube
+        uses: manusa/actions-setup-minikube@v1.1.0
+        with:
+          minikube version: 'v1.11.0'
+          kubernetes version: 'v1.18.3'
+      
+      - name: Set up Python 3.7
+        uses: actions/setup-python@v2
+        with:
+          python-version: '3.7' 
+      
+      - name: Build ATS Alpine
+        run: docker build -t ats_alpine .
+      
+      - name: Build Exporter
+        run: docker build -t tsexporter k8s/backend/trafficserver_exporter/
+      
+      - name: Build App 1
+        run: docker build -t node-app-1 k8s/backend/node-app-1/
+      
+      - name: Build App 2
+        run: docker build -t node-app-2 k8s/backend/node-app-2/
+      
+      - name: Install dependencies
+        run: |
+          cd tests
+          python -m pip install --upgrade pip
+          pip install -r requirements.txt
+      
+      - name: Test 
+        run: |
+          cd tests
+          pytest -q --minikubeip="$(minikube ip)" suite/test_ingress.py
\ No newline at end of file
diff --git a/build-master.sh b/build-master.sh
deleted file mode 100755
index 573bbb4..0000000
--- a/build-master.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash -e
-
-# build
-REPONAME="ats-ingress"
-TAG="latest"
-TARGET=atsingress/${REPONAME}:${TAG}
-
-echo "${DOCKERHUB_TOKEN}" | docker login --username "${DOCKERHUB_USER}" --password-stdin
-docker build -t ${TARGET} .
-docker push ${TARGET}