Skip to content

Lookup INFRAHUB_ env vars first (#1984) #6

Lookup INFRAHUB_ env vars first (#1984)

Lookup INFRAHUB_ env vars first (#1984) #6

Workflow file for this run

---
# yamllint disable rule:truthy
name: New Release
on:
push:
tags:
- 'infrahub-v*'
jobs:
meta_data:
runs-on: ubuntu-22.04
outputs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
steps:
- name: Set docker image meta data
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ vars.HARBOR_HOST }}/${{ github.repository }}
tags: |
type=match,pattern=infrahub-v(\d+\.\d+\.\d+),group=1
type=match,pattern=infrahub-v(\d+\.\d+),group=1
labels: |
org.opencontainers.image.source=${{ github.repository }}
publish-docker-image:
uses: ./.github/workflows/ci-docker-image.yml
secrets: inherit
needs: meta_data
with:
publish: true
version: ${{ github.ref_name }}
ref: ${{ github.sha }}
tags: ${{ needs.meta_data.outputs.tags }}
labels: ${{ needs.meta_data.outputs.labels }}