From f656f0986480e7d68d131aba3a9c879b7e9fc181 Mon Sep 17 00:00:00 2001 From: Emmanuel Owosekun Date: Thu, 29 Aug 2024 16:44:21 +0200 Subject: [PATCH] Remove: removes ghcr push --- .github/workflows/container.yml | 49 +-------------------------------- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index f469748..43e82b3 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -2,7 +2,7 @@ name: Container Image Builds on: push: - branches: [ eowosekun/greenbone-feed-sync-to-feed ] + branches: [ main ] tags: ["v*"] workflow_dispatch: @@ -34,53 +34,6 @@ jobs: org.opencontainers.image.documentation=https://greenbone.github.io/docs/ org.opencontainers.image.base.name=debian:stable-slim - ghcr: - needs: generate - name: Build and push to ghcr.io (for feed-deployment only!!!) - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: greenbone/actions/checkout@v3 - - name: Login to GitHub Container Registry - if: github.event_name != 'pull_request' - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ secrets.GREENBONE_BOT }} - password: ${{ secrets.GREENBONE_BOT_TOKEN }} - - name: Setup additional container meta information - id: meta - uses: docker/metadata-action@v5 - with: - images: ghcr.io/${{ github.repository }} - tags: | - # use version, major.minor and major for tags - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - - # create container tag for git tags - type=ref,event=tag - # set edge for default branch - type=edge - - # when a new git tag is created set stable and a latest tags - type=raw,value=latest,enable=${{ needs.generate.outputs.is-latest-tag == 'true' }} - type=raw,value=stable,enable=${{ needs.generate.outputs.is-latest-tag == 'true' }} - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Build and push Container image - uses: docker/build-push-action@v6 - with: - context: . - push: ${{ github.event_name != 'pull_request' }} - file: .docker/Dockerfile - platforms: linux/amd64,linux/arm64 - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ needs.generate.outputs.labels }} - harbor: name: Build and push to self-hosted harbor needs: generate