Skip to content

Adjust GHA job names for package delineation #1

Adjust GHA job names for package delineation

Adjust GHA job names for package delineation #1

name: [helm-project-operator] Publish images

Check failure on line 1 in .github/workflows/hpo-publish-image.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/hpo-publish-image.yaml

Invalid workflow file

You have an error in your yaml syntax
on:
push:
tags:
- "*"
jobs:
push:
runs-on: ubuntu-latest
permissions:
contents : read
id-token: write
steps:
- name : "Read Secrets"
uses : rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
- name : Export image version
run : |
source ./scripts/version
echo IMAGE=$IMAGE >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Helm-Project-Operator image
uses: docker/build-push-action@v5
with:
context: .
file: ./package/Dockerfile-helm-project-operator
push: true
tags: ${{ env.IMAGE }}
platforms: linux/amd64,linux/arm64