Skip to content
name: Build image and publish chart
run-name: Build
on:
push:
tags:
- '*'
env:
IMAGE_NAME: pannoi/minio-resource-operator
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Auth docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
Publish:
runs-on: dtzar/helm-kubectl:3.9.1
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name "pannoi"
- name: Package helm and publish
run: |

Check failure on line 50 in .github/workflows/build-and-publish.yml

View workflow run for this annotation

GitHub Actions / Build image and publish chart

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-publish.yml (Line: 50, Col: 14): Unrecognized named-value: 'DEPLOYMENT_TOKEN'. Located at position 1 within expression: DEPLOYMENT_TOKEN
export ${{ DEPLOYMENT_TOKEN }}
helm package chart/
git clone https://github.com/pannoi/minio-resource-operator-helm.git
mv minio-resource-operator-${{ steps.meta.outputs.tags }}.tgz minio-resource-operator-helm
helm repo index minio-resource-operator-helm
cd minio-resource-operator-helm
git add .
git commit -m "chore: upd version ${{ steps.meta.outputs.tags }}"
git push