From 60cc64bc4373af7fd066eef7e835acf55698a91c Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Tue, 2 Jul 2024 08:05:19 +0200 Subject: [PATCH] Remove Centos build, but keep sources --- .github/workflows/master.yaml | 44 --------------------------------- .github/workflows/pr.yaml | 45 ---------------------------------- .github/workflows/release.yaml | 1 - 3 files changed, 90 deletions(-) diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index e27c0239..d29c3ddc 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -96,47 +96,3 @@ jobs: - name: Upload image tarballs to GCS run: cd images && gsutil -m -h "Cache-Control:no-store" cp -r . gs://$GCS_BUCKET/metal-os - - centos: - name: Build Centos based OS image - runs-on: self-hosted - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - uses: google-github-actions/auth@v2 - with: - credentials_json: '${{ secrets.GCP_SA_KEY }}' - - - name: Set up Cloud SDK - uses: google-github-actions/setup-gcloud@v2 - - - name: Set up Go 1.22 - uses: actions/setup-go@v5 - with: - go-version: '1.22.x' - cache: false - - - name: build install - run: make - - - name: Prepare build environment - shell: bash - run: ./prepare.sh centos - - - name: Build docker image for centos based workers and export tarball - run: | - DOCKER_MAKE_REGISTRY_LOGIN_USER="metalstack+ci" \ - DOCKER_MAKE_REGISTRY_LOGIN_PASSWORD="${{ secrets.QUAY_IO_TOKEN }}" \ - TMPDIR=/var/tmp \ - docker-make \ - --work-dir centos \ - --file docker-make.yaml \ - --no-cache \ - --summary \ - --no-lint \ - --no-push - - - name: Upload image tarballs to GCS - run: cd images && gsutil -m -h "Cache-Control:no-store" cp -r . gs://$GCS_BUCKET/metal-os diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index bf2ccf33..88b6e6c4 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -98,48 +98,3 @@ jobs: - name: Upload image tarballs to GCS run: cd images && gsutil -m -h "Cache-Control:no-store" cp -r . gs://$GCS_BUCKET/metal-os/pull_requests/ - - centos: - name: Build Centos based OS image - runs-on: self-hosted - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - uses: google-github-actions/auth@v2 - with: - credentials_json: '${{ secrets.GCP_SA_KEY }}' - - - name: Set up Cloud SDK - uses: google-github-actions/setup-gcloud@v2 - - - name: Set up Go 1.22 - uses: actions/setup-go@v5 - with: - go-version: '1.22.x' - cache: false - - - name: build install - run: make - - - name: Prepare build environment - shell: bash - run: ./prepare.sh centos - - - name: Build docker image for centos based workers and export tarball - run: | - DOCKER_MAKE_REGISTRY_LOGIN_USER="metalstack+ci" \ - DOCKER_MAKE_REGISTRY_LOGIN_PASSWORD="${{ secrets.QUAY_IO_TOKEN }}" \ - TMPDIR=/var/tmp \ - docker-make \ - --work-dir centos \ - --file docker-make.yaml \ - --no-cache \ - --no-push \ - --summary \ - --no-lint \ - --no-push - - - name: Upload image tarballs to GCS - run: cd images && gsutil -m -h "Cache-Control:no-store" cp -r . gs://$GCS_BUCKET/metal-os/pull_requests/ diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9582a105..4ea442e5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -33,7 +33,6 @@ jobs: - run: | # copy supported images (entire stable folder cannot be copied as a whole because it contains obsolete images as well) - gsutil -m cp -r gs://$GCS_BUCKET/metal-os/stable/centos/7 gs://$GCS_BUCKET/metal-os/${GITHUB_REF##*/}/centos/7 gsutil -m cp -r gs://$GCS_BUCKET/metal-os/stable/debian/12 gs://$GCS_BUCKET/metal-os/${GITHUB_REF##*/}/debian/12 gsutil -m cp -r gs://$GCS_BUCKET/metal-os/stable/debian-nvidia/12 gs://$GCS_BUCKET/metal-os/${GITHUB_REF##*/}/debian-nvidia/12 gsutil -m cp -r gs://$GCS_BUCKET/metal-os/stable/firewall/3.0-ubuntu gs://$GCS_BUCKET/metal-os/${GITHUB_REF##*/}/firewall/3.0-ubuntu