Adjust GHA job names for package delineation #1
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: [helm-locker] Publish Images | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
env: | ||
REGISTRY: docker.io | ||
jobs: | ||
push: | ||
name : Build and push helm-locker images | ||
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 | ||
- name : Checkout repository | ||
uses: actions/checkout@v4 | ||
- 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 : Setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- 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 : Build, test & validate | ||
run : make ci | ||
- name : Export version info | ||
run : | | ||
source ./scripts/version | ||
echo IMAGE=$IMAGE >> $GITHUB_ENV | ||
- name: Build and push helm-locker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./package/Dockerfile | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE }} | ||
platforms : linux/amd64,linux/arm64 |