Skip to content

Commit

Permalink
Merge pull request #67 from rancher/publish-image-workflow
Browse files Browse the repository at this point in the history
Add publish images release workflow
  • Loading branch information
alexandreLamarre authored May 21, 2024
2 parents 35ee16e + 0381aa4 commit ddb799d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 157 deletions.
157 changes: 0 additions & 157 deletions .drone.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name : Publish images

name : Publish Images

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

0 comments on commit ddb799d

Please sign in to comment.