From d7b89903eb9ee67d3da063e5a7c63d3bde969f5c Mon Sep 17 00:00:00 2001 From: Dimitri Saridakis Date: Fri, 22 Sep 2023 17:27:22 +0100 Subject: [PATCH] refactor: remove the building and pushing of images from wfs --- .github/workflows/build-and-push.yml | 53 ---------------------------- .github/workflows/mcad-release.yml | 16 --------- 2 files changed, 69 deletions(-) delete mode 100644 .github/workflows/build-and-push.yml diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml deleted file mode 100644 index e56e50368..000000000 --- a/.github/workflows/build-and-push.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Build and Push dev MCAD image into Quay - -on: - push: - branches: - - '*' - -jobs: - build-and-push: - runs-on: ubuntu-latest - - steps: - - name: checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Set latest tag and Branch name - run: | - BRANCH=$(echo ${GITHUB_REF#refs/heads/}) - echo "GIT_BRANCH=$(echo "$BRANCH" | sed 's/[^A-Za-z0-9._-]/-/g' )" >> $GITHUB_ENV - if [[ "$BRANCH" == "main" ]]; then - echo "TAG=dev" >> $GITHUB_ENV - elif [[ "$BRANCH" == release-* ]]; then - echo "TAG=dev-$BRANCH" >> $GITHUB_ENV - else - LATEST_TAG=$(git describe --abbrev=0 --tags) - echo "TAG=$BRANCH-$LATEST_TAG" >> $GITHUB_ENV - fi - - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.19.10 - - - name: Build - run: - make mcad-controller - - - name: Run Unit tests - run: make run-test - - - name: Build Image - run: | - make images -e GIT_BRANCH=${{ env.GIT_BRANCH }} TAG=${{ env.TAG }} - - - name: Push Image - run: | - make push-images -e GIT_BRANCH=${{ env.GIT_BRANCH }} TAG=${{ env.TAG }} quay_repository=quay.io/project-codeflare quay_id=${{ secrets.QUAY_ID }} quay_token=${{ secrets.QUAY_TOKEN }} - - - name: Run E2E tests - run: | - make run-e2e -e GIT_BRANCH=${{ env.GIT_BRANCH }} TAG=${{ env.TAG }} diff --git a/.github/workflows/mcad-release.yml b/.github/workflows/mcad-release.yml index 686b19e7f..74805a9ef 100644 --- a/.github/workflows/mcad-release.yml +++ b/.github/workflows/mcad-release.yml @@ -9,11 +9,6 @@ on: required: true default: 'v0.0.0-dev' type: string - quay-organization: - description: 'Quay organization used to push the built images to' - required: true - default: 'project-codeflare' - type: string jobs: release: @@ -48,17 +43,6 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} - - name: Build - run: make mcad-controller - - - name: Image Build and Push - env: - GIT_BRANCH: ${{ github.event.inputs.tag }} - TAG: release-${{ github.event.inputs.tag }} - run: | - make images -e GIT_BRANCH=$GIT_BRANCH TAG=$TAG - make push-images -e GIT_BRANCH=$GIT_BRANCH TAG=$TAG quay_repository=quay.io/${{ github.event.inputs.quay-organization }} quay_id=${{ secrets.QUAY_ID }} quay_token=${{ secrets.QUAY_TOKEN }} - - name: Publish MCAD package run: | GOPROXY=proxy.golang.org go list -m github.com/project-codeflare/multi-cluster-app-dispatcher@${{ github.event.inputs.tag }}