From 7ff65a2355bc95ba2e8eb10d3ebf4209fa4b3c8f Mon Sep 17 00:00:00 2001 From: Marvin Beckers Date: Mon, 12 Jun 2023 08:48:29 +0200 Subject: [PATCH] remove GitHub Actions for image builds Signed-off-by: Marvin Beckers --- .github/workflows/kcp-image.yaml | 59 ----------------------------- .github/workflows/syncer-image.yaml | 26 ------------- 2 files changed, 85 deletions(-) delete mode 100644 .github/workflows/kcp-image.yaml delete mode 100644 .github/workflows/syncer-image.yaml diff --git a/.github/workflows/kcp-image.yaml b/.github/workflows/kcp-image.yaml deleted file mode 100644 index f8ef6d2c84e..00000000000 --- a/.github/workflows/kcp-image.yaml +++ /dev/null @@ -1,59 +0,0 @@ -name: Build and Publish KCP Image - -permissions: - packages: write - -on: - push: - branches: - - main - - 'release-*' - tags: - - 'v*' - -jobs: - build: - if: github.repository_owner == 'kcp-dev' - name: Build KCP Image - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: v1.19 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ github.token }} - - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: | - ghcr.io/${{ github.repository_owner }}/kcp - tags: | - type=ref,event=branch - type=ref,event=tag - type=sha,prefix=,suffix=,format=short - type=raw,value=latest,enable={{is_default_branch}} - - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64,linux/ppc64le - cache-from: type=gha,scope=${{ github.ref_name }}-buildx - cache-to: type=gha,scope=${{ github.ref_name }}-buildx,mode=max diff --git a/.github/workflows/syncer-image.yaml b/.github/workflows/syncer-image.yaml deleted file mode 100644 index 4a6375b406a..00000000000 --- a/.github/workflows/syncer-image.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build Syncer Image - -permissions: - packages: write - -on: - push: - branches: - - main - - 'release-*' - tags: - - 'v*' - -jobs: - syncer-image: - name: Build Syncer Image - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: v1.19 - - # Build and push multi-arch supported syncer image, tagged with the commit SHA and the branch name. - - uses: imjasonh/setup-ko@v0.6 - - run: ko publish -B ./cmd/syncer --platform linux/amd64,linux/ppc64le,linux/arm64 -t $(git rev-parse --short "$GITHUB_SHA"),${{ github.ref_name }}