Skip to content

Commit

Permalink
Remove: removes ghcr push
Browse files Browse the repository at this point in the history
  • Loading branch information
Balou9 authored Aug 29, 2024
1 parent 768e7da commit f656f09
Showing 1 changed file with 1 addition and 48 deletions.
49 changes: 1 addition & 48 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Container Image Builds

on:
push:
branches: [ eowosekun/greenbone-feed-sync-to-feed ]
branches: [ main ]
tags: ["v*"]
workflow_dispatch:

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f656f09

Please sign in to comment.