From ea3d967522e9ae40beae765f0f6b0cb92fa39d64 Mon Sep 17 00:00:00 2001 From: Richard87 Date: Fri, 11 Oct 2024 11:34:05 +0200 Subject: [PATCH] feat: always build docker images on tag --- .github/workflows/build-container.yaml | 2 + .github/workflows/release.yaml | 51 +------------------------- 2 files changed, 4 insertions(+), 49 deletions(-) diff --git a/.github/workflows/build-container.yaml b/.github/workflows/build-container.yaml index dfd67b8..587ccc1 100644 --- a/.github/workflows/build-container.yaml +++ b/.github/workflows/build-container.yaml @@ -4,6 +4,8 @@ on: push: branches: - main + tags: + - '**' pull_request: {} workflow_dispatch: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 90928b3..0e90087 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,58 +1,11 @@ -name: Build Release Docker Image +name: Release Helm on: push: tags: - - 'v.*' + - '**' jobs: - - build-container-image: - name: Build container image - runs-on: ubuntu-latest - env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - - permissions: - contents: read - packages: write - - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log in to the Container registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" - tags: | - type=semver - - - name: Build and push Docker image - uses: docker/build-push-action@v6 - with: - context: . - file: ./Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: | - linux/amd64 - linux/arm64 - - build-helm-chart: name: Build Helm chart permissions: