Skip to content

Bump the gomod group with 8 updates (#338) #197

Bump the gomod group with 8 updates (#338)

Bump the gomod group with 8 updates (#338) #197

---
name: Continuous Delivery
on:
push:
branches:
- main
tags:
- "*"
jobs:
docker:
name: Docker
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Docker Metadata
id: metadata
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=semver,pattern={{raw}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
id: docker_build
uses: docker/build-push-action@v6
with:
push: true
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
helm:
name: Helm
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set Version
id: version
run: |
echo VERSION=$(yq -r .version ./charts/vault-secrets-operator/Chart.yaml) >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- name: Package and Push Helm Chart
run: |
helm package ./charts/vault-secrets-operator --version ${{ env.VERSION }}
helm push ./vault-secrets-operator-${{ env.VERSION }}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts