Skip to content

Commit

Permalink
Remove Centos build, but keep sources (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Jul 2, 2024
1 parent 39541c0 commit 94c948a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 90 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
45 changes: 0 additions & 45 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
1 change: 0 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94c948a

Please sign in to comment.