Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Build image and publish chartInvalid workflow file
|
||
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 |