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

franztt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git

commit 08a7ca63e709d445d80c8339ed40a93db41ccd88
Author: francescotimperi <francesco.timp...@gmail.com>
AuthorDate: Wed Jul 24 17:34:17 2024 +0000

    chore: preparing github actions to build operator
---
 .github/workflows/fast-image.yml | 84 ----------------------------------------
 .github/workflows/image.yml      | 46 +++-------------------
 Dockerfile                       |  4 +-
 3 files changed, 8 insertions(+), 126 deletions(-)

diff --git a/.github/workflows/fast-image.yml b/.github/workflows/fast-image.yml
deleted file mode 100644
index 65eb5ce..0000000
--- a/.github/workflows/fast-image.yml
+++ /dev/null
@@ -1,84 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-# Copyright 2021 Nuvolaris LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-name: Build Fast Image
-
-on:
-  push:
-    tags:
-    - 'fast[0-9]*'
-    branches-ignore:
-    - '*'
-
-jobs:
-  image:
-    name: Image
-    runs-on: ubuntu-latest
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        with:
-          submodules: recursive
-      - name: Make envfile
-        if:  ${{ github.repository_owner != 'nuvolaris'}}
-        uses: SpicyPizza/create-envfile@v1.3
-        with:
-          envkey_MY_OPERATOR_IMAGE: ${{ secrets.MY_OPERATOR_IMAGE }}
-          envkey_GITHUB_TOKEN: ${{ secrets.GT_TOKEN }}
-          envkey_GITHUB_USER: ${{ secrets.GT_USER }}
-          file_name: .env
-          fail_on_empty: false        
-      - name: Registry
-        uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
-        with:
-          registry: ghcr.io
-          username: ${{ github.actor }}
-          password: ${{ secrets.GITHUB_TOKEN }}   
-      - name: Setup
-        run: bash .github/cisetup.sh
-      - name: Ngrok
-        if: ${{ env.NGROK == 'on' }}
-        run: bash .github/debug-github-actions.sh
-        env:
-          NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
-          USER_PASS: ${{ secrets.USER_PASS }}
-      - name: Wait
-        if: ${{ env.NGROK == 'on' }}
-        run: bash .github/wait.sh
-      - name: DockerLogin
-        if:  ${{ github.repository_owner != 'nuvolaris'}}
-        run: task docker-login             
-      - name: Buildx
-        uses: crazy-max/ghaction-docker-buildx@v1
-        with:
-          version: latest
-      - name: Image
-        run: task buildx-and-push
\ No newline at end of file
diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml
index 2e44bd4..4b6ef87 100644
--- a/.github/workflows/image.yml
+++ b/.github/workflows/image.yml
@@ -52,51 +52,17 @@ jobs:
         with:
           submodules: recursive
       - name: License
-        uses: apache/skywalking-eyes@main
-      - name: Make envfile
-        if:  ${{ github.repository_owner != 'nuvolaris'}}
-        uses: SpicyPizza/create-envfile@v1.3
+        uses: apache/skywalking-eyes@main      
+      - name: Registry login
+        uses: docker/login-action@v3
         with:
-          envkey_MY_OPERATOR_IMAGE: ${{ secrets.MY_OPERATOR_IMAGE }}
-          envkey_GITHUB_TOKEN: ${{ secrets.GT_TOKEN }}
-          envkey_GITHUB_USER: ${{ secrets.GT_USER }}
-          file_name: .env
-          fail_on_empty: false        
-      - name: Registry
-        uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
-        with:
-          registry: ghcr.io
-          username: ${{ github.actor }}
-          password: ${{ secrets.GITHUB_TOKEN }}   
+          registry: registry.hub.docker.com
+          username: ${{ secrets.DOCKERHUB_USER }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}   
       - name: Setup
         run: bash .github/cisetup.sh
-      - name: Kind
-        uses: helm/kind-action@v1.2.0
-        with:
-            cluster_name: nuvolaris
-            config: .github/kind.yaml
       - name: Install
         run: poetry install
-      #- name: Tag
-      #  run: task image-tag          
-      #- name: BuildAndLoad
-      #  run: task build-and-load
-      #- name: Ngrok
-      #  if: ${{ env.NGROK == 'on' }}
-      #  run: bash .github/debug-github-actions.sh
-      #  env:
-      #    NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
-      #    USER_PASS: ${{ secrets.USER_PASS }}
-      #- name: Wait
-      #  if: ${{ env.NGROK == 'on' }}
-      #  run: bash .github/wait.sh
-      #- name: AddIngress
-      #  run: task kind:ingress         
-      #- name: Test
-      #  run:  task test
-      - name: DockerLogin
-        if:  ${{ github.repository_owner != 'nuvolaris'}}
-        run: task docker-login             
       - name: Buildx
         uses: crazy-max/ghaction-docker-buildx@v1
         with:
diff --git a/Dockerfile b/Dockerfile
index 887d551..92ecf70 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,8 +20,8 @@ ENV CONTROLLER_IMAGE=ghcr.io/nuvolaris/openwhisk-controller
 ENV CONTROLLER_TAG=3.1.0-mastrogpt.2402101445
 ENV INVOKER_IMAGE=ghcr.io/nuvolaris/openwhisk-invoker
 ENV INVOKER_TAG=3.1.0-mastrogpt.2402101445
-ARG OPERATOR_IMAGE_DEFAULT=ghcr.io/nuvolaris/openserverless-operator
-ARG OPERATOR_TAG_DEFAULT=0.1-dev.2309191654
+ARG 
OPERATOR_IMAGE_DEFAULT=registry.hub.docker.com/apacheopenserverless/openserverless-operator
+ARG OPERATOR_TAG_DEFAULT=0.1-snapshot.2309191654
 ENV OPERATOR_IMAGE=${OPERATOR_IMAGE_DEFAULT}
 ENV OPERATOR_TAG=${OPERATOR_TAG_DEFAULT}
 

Reply via email to