Skip to content

Add helm chart releaser #12

Add helm chart releaser

Add helm chart releaser #12

Workflow file for this run

name: Build Docker Images
on:
push:
tags:
- '**'
branches:
- 'main'
pull_request:
types:
- "opened"
- "reopened"
- "synchronize"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
strategy:
matrix:
image: ["operator", "account-server"]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ matrix.image }}
tags: |
type=semver,pattern={{version}}
type=edge
type=ref,event=pr
- name: Build and push Docker Images
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: "TARGET=${{ matrix.image }}"