Skip to content

Commit

Permalink
Merge pull request #20 from Lerentis/Lerentis/issue14
Browse files Browse the repository at this point in the history
  • Loading branch information
Lerentis authored Apr 22, 2023
2 parents 9c1c741 + 16040bf commit 54a4ffa
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,25 @@ jobs:
with:
cmd: yq '.appVersion' charts/bitwarden-crd-operator/Chart.yaml

- name: "GHCR Login"
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "GHCR Build and Push"
id: docker_build
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.actor }}/bitwarden-crd-operator:${{ steps.app_version.outputs.result }}

- name: Create SBOM
uses: anchore/sbom-action@v0
with:
image: lerentis/bitwarden-crd-operator:${{ steps.app_version.outputs.result }}
image: ghcr.io/${{ github.actor }}/bitwarden-crd-operator:${{ steps.app_version.outputs.result }}

- name: Publish SBOM
uses: anchore/sbom-action/publish-sbom@v0
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN cd /tmp && wget https://github.com/bitwarden/clients/releases/download/cli-v

FROM alpine:3.17.3

LABEL org.opencontainers.image.source=https://github.com/Lerentis/bitwarden-crd-operator
LABEL org.opencontainers.image.description="Kubernetes Operator to create k8s secrets from bitwarden"
LABEL org.opencontainers.image.licenses=MIT

ARG PYTHON_VERSION=3.10.11-r0
ARG PIP_VERSION=22.3.1-r1
ARG GCOMPAT_VERSION=1.1.0-r0
Expand Down
6 changes: 3 additions & 3 deletions charts/bitwarden-crd-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Deploy the Bitwarden CRD Operator

type: application

version: "v0.5.4"
version: "v0.6.0"

appVersion: "0.5.4"

Expand Down Expand Up @@ -95,7 +95,7 @@ annotations:
artifacthub.io/operator: "true"
artifacthub.io/changes: |
- kind: changed
description: "Bump Alpine base image from 3.17.2 to 3.17.3"
description: "Default image registry to ghcr.io and no longer docker hub. docker hub images will continue to be published"
artifacthub.io/images: |
- name: bitwarden-crd-operator
image: lerentis/bitwarden-crd-operator:0.5.4
image: ghcr.io/lerentis/bitwarden-crd-operator:0.5.4
2 changes: 1 addition & 1 deletion charts/bitwarden-crd-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1

image:
repository: lerentis/bitwarden-crd-operator
repository: ghcr.io/lerentis/bitwarden-crd-operator
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
# tag: "0.1.0"
Expand Down

0 comments on commit 54a4ffa

Please sign in to comment.