Skip to content

Add publish images release workflow #1

Add publish images release workflow

Add publish images release workflow #1

name : Publish images
name : Publish Images

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

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 3
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 : 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
push: true
tags: ${{ env.IMAGE }}
platforms: linux/amd64,linux/arm64