Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove: container-build-push-3rd-gen container-build-push-docker container-build-push-ghcr helm-build-push #70

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/workflows/container-build-push-3rd-gen.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/container-build-push-docker.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/container-build-push-ghcr.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/helm-build-push.yml

This file was deleted.

127 changes: 1 addition & 126 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,44 +378,6 @@ Inputs:
| release-version | An explicit release version. If not set the release version will be determined from the current tag and the release type | Optional |
| versioning-scheme | Versioning scheme to use. | Optional (default: `"semver"`) |

### Helm Build/Push

```yaml
name: Helm chart release on tag

on:
push:
tags: ["v*"]

jobs:
release-helm-chart:
name: Release helm chart
strategy:
fail-fast: false
matrix:
chart:
- foo
- bar
uses: greenbone/workflows/.github/workflows/helm-build-push.yml@main
with:
chart: ${{ matrix.chart }}
secrets: inherit
```

Secrets:

| Name | Description | |
|------|-------------|-|
| GREENBONE_BOT | Username of the Greenbone Bot Account | Required |
| GREENBONE_BOT_PACKAGES_WRITE_TOKEN | Token to upload packages to ghcr.io | Required |
| GREENBONE_BOT_TOKEN | Token to trigger product helm chart updates | Required |

Inputs:

| Name | Description | |
|------|-------------|-|
| chart | Helm Chart to update | Required |

### Helm Build/Push 3rd gen

Helm build push workflow that add's the container digest after the container tag.
Expand Down Expand Up @@ -493,93 +455,6 @@ Inputs:
| build | Directory containing the build of the documentation | Optional (default: `"docs/build/html"`) |
| environment-name | Name of the deployment environment | Optional (default: `"github-pages"`) |

### Build and push container images to ghcr.io or docker.io

A workflow to build and push container images to ghcr.io or docker.io.

```yml
name: Build Container Image Builds

on:
workflow_dispatch:

permissions:
contents: read
packages: write
id-token: write

jobs:
building:
name: Build Container Image
# ghcr.io
uses: greenbone/workflows/.github/workflows/container-build-push-ghcr.yml@main
# docker.io
#uses: greenbone/workflows/.github/workflows/container-build-push-docker.yml@main
with:
image-url: ${{ vars.IMAGE_REGISTRY }}/${{ github.repository }}
image-labels: |
org.opencontainers.image.vendor=Greenbone
org.opencontainers.image.base.name=alpine/latest
image-tags: |
# create container tag for git tags
type=ref,event=tag,value=latest
type=match,pattern=v(.*),group=1
type=ref,event=pr
# use unstable for main branch
type=raw,value=unstable,enable={{is_default_branch}}
secrets: inherit
```

Inputs:

| Name | Description | |
|------|-------------|-|
| image-labels | Image labels. | Required |
| image-url | Image url/name without registry. | Required |
| image-tags | Image tags. | Required |
| image-platforms | Image platforms to build for. Default "linux/amd64" | Optional |
| build-context | Path to image build context. Default "." | Optional |
| build-docker-file | Path to the docker file. Default "./Dockerfile" | Optional |
| build-args | Use these build-args for the docker build process. | Optional |

### Build and push container images 3rd gen

A workflow to build and push container images to 3rd gen.

```yml
name: Build Container Image Builds

on:
workflow_dispatch:

permissions:
contents: read
packages: write
id-token: write

jobs:
building:
name: Build Container Image
uses: greenbone/workflows/.github/workflows/container-build-push-3rd-gen.yml@main
with:
image-url: ${{ vars.IMAGE_REGISTRY }}/${{ github.repository }}
image-labels: |
org.opencontainers.image.vendor=Greenbone
org.opencontainers.image.base.name=alpine/latest
secrets: inherit
```

Inputs:

| Name | Description | |
|------|-------------|-|
| image-labels | Image labels. | Required |
| image-url | Image url/name without registry. | Required |
| image-platforms | Image platforms to build for. Default "linux/amd64" | Optional |
| build-context | Path to image build context. Default "." | Optional |
| build-docker-file | Path to the docker file. Default "./Dockerfile" | Optional |
| build-args | Use these build-args for the docker build process. | Optional |

### Build and push 3rd gen container images and related helm chart

A workflow to build and push 3rd gen container images and the related helm chart.
Expand Down Expand Up @@ -743,7 +618,7 @@ on:
workflow_dispatch

jobs:
building:
building:
...
building2:
...
Expand Down