From 246ff9a5163bbd8b0b696484e4905c973d90e18d Mon Sep 17 00:00:00 2001 From: Nikolai Prokoschenko Date: Thu, 18 Jul 2024 09:09:07 +0200 Subject: [PATCH] Clean up fork's workflows --- .github/workflows/anchore-syft.yml | 31 ----------- .github/workflows/codeql-analysis.yml | 75 --------------------------- .github/workflows/main.yaml | 30 +++-------- .github/workflows/release.yaml | 56 -------------------- 4 files changed, 6 insertions(+), 186 deletions(-) delete mode 100644 .github/workflows/anchore-syft.yml delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/anchore-syft.yml b/.github/workflows/anchore-syft.yml deleted file mode 100644 index 54645dad..00000000 --- a/.github/workflows/anchore-syft.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# This workflow checks out code, builds an image, performs a container image -# scan with Anchore's Syft tool, and uploads the results to the GitHub Dependency -# submission API. - -# For more information on the Anchore sbom-action usage -# and parameters, see https://github.com/anchore/sbom-action. For more -# information about the Anchore SBOM tool, Syft, see -# https://github.com/anchore/syft -name: Anchore Syft SBOM scan - -on: - release: - types: [published] - -jobs: - sbom: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: ${{ github.ref_name }} - - name: Anchore SBOM Action - uses: anchore/sbom-action@v0.16.0 - with: - format: cyclonedx-json diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index dca0ef6d..00000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,75 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ main ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ main ] - schedule: - - cron: '17 10 * * 6' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'go' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e6558d22..51d5f52a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,13 +1,12 @@ name: Build and publish main image regularly on: - schedule: - - cron: '25 0 * * *' - workflow_dispatch: - + push: + branches: + - main jobs: - nightly_build: + master_build: runs-on: ubuntu-latest steps: - name: Checkout @@ -16,17 +15,12 @@ jobs: uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to Github Packages uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build standard version id: docker_build uses: docker/build-push-action@v5 @@ -35,18 +29,6 @@ jobs: platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x push: ${{ github.event_name != 'pull_request' }} tags: >- - plndr/kube-vip:${{ github.ref_name }}, - ghcr.io/kube-vip/kube-vip:${{ github.ref_name }} - - name: Build iptables version - id: docker_build_iptables - uses: docker/build-push-action@v5 - with: - context: . - file: Dockerfile_iptables - platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x - push: ${{ github.event_name != 'pull_request' }} - tags: >- - plndr/kube-vip-iptables:${{ github.ref_name }}, - ghcr.io/kube-vip/kube-vip-iptables:${{ github.ref_name }} + ghcr.io/kurzdigital/kube-vip:${{ github.ref_name }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 6a6c0e46..00000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,56 +0,0 @@ -name: Publish Releases to Docker Hub and GitHub Container Registry - -on: - push: - tags: - - '*' - workflow_dispatch: - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Login to Github Packages - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push main branch - id: docker_build - uses: docker/build-push-action@v5 - with: - context: . - platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x - push: ${{ github.event_name != 'pull_request' }} - tags: >- - plndr/kube-vip:${{ github.ref_name }}, - plndr/kube-vip:latest, - ghcr.io/kube-vip/kube-vip:${{ github.ref_name }}, - ghcr.io/kube-vip/kube-vip:latest - - name: Build iptables version and push main branch - id: docker_build_iptables - uses: docker/build-push-action@v5 - with: - context: . - file: Dockerfile_iptables - platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x - push: ${{ github.event_name != 'pull_request' }} - tags: >- - plndr/kube-vip-iptables:${{ github.ref_name }}, - plndr/kube-vip-iptables:latest, - ghcr.io/kube-vip/kube-vip-iptables:${{ github.ref_name }}, - ghcr.io/kube-vip/kube-vip-iptables:latest - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }}