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/23 00:46:11 UTC

[trafficserver-ingress-controller] branch master updated: Build - Adds dockerhub username and password (#16)

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 3b3fe66  Build - Adds dockerhub username and password (#16)
3b3fe66 is described below

commit 3b3fe66baed001c11fee8169ff54c6292ff3896f
Author: Rishabh Chhabra <ri...@gmail.com>
AuthorDate: Wed Jul 22 19:46:03 2020 -0500

    Build - Adds dockerhub username and password (#16)
    
    * Updates permissions for build-master.sh
    
    * Replaces quay credentials with apache dockerhub
    
    * Adds execute permissions to build-master
---
 .github/workflows/build.yml | 6 +++---
 build-master.sh             | 8 +++-----
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 44fdebb..244ac12 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -13,6 +13,6 @@ jobs:
       uses: actions/checkout@v2
     - name: Build and push
       run: ./build-master.sh
-      # env:
-      #   QUAY_USERNAME: ${{  secrets.QUAY_USERNAME }}
-      #   QUAY_PASSWORD: ${{  secrets.QUAY_PASSWORD }}
\ No newline at end of file
+      env:
+        DOCKERHUB_USER: ${{  secrets.DOCKERHUB_USER }}
+        DOCKERHUB_TOKEN: ${{  secrets.DOCKERHUB_TOKEN }}
\ No newline at end of file
diff --git a/build-master.sh b/build-master.sh
index ad5d5ef..cea4535 100755
--- a/build-master.sh
+++ b/build-master.sh
@@ -3,10 +3,8 @@
 # build
 REPONAME="ats-ingress"
 TAG="latest"
-#TARGET="quay.io"/${QUAY_USERNAME}/${REPONAME}:${TAG}
-TARGET="ats-ingress:latest"
-#echo ${TARGET}
+TARGET=atsingress/${REPONAME}:${TAG}
 
-#echo "${QUAY_PASSWORD}" | docker login -u "${QUAY_USERNAME}" quay.io --password-stdin
+echo "${DOCKERHUB_TOKEN}" | docker login -u "${DOCKERHUB_USER}" --password-stdin
 docker build -t ${TARGET} .
-#docker push ${TARGET}
\ No newline at end of file
+docker push ${TARGET}
\ No newline at end of file