Skip to content

fix env not being avail #76

fix env not being avail

fix env not being avail #76

Workflow file for this run

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
name: ci-tag
env:
DOTNET_VERSION: 9.0.x
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/api
jobs:
# Pre-job to find the latest tag
get-latest-tag:
runs-on: ubuntu-latest
outputs:
latest-tag: ${{ steps.latest-tag.outputs.tag }}
steps:
- name: Find latest tag
id: latest-tag
uses: oprypin/find-latest-tag@v1
with:
repository: ${{ github.repository }}
regex: '^\d+\.\d+\.\d+$'
releases-only: false
# Delegate building and containerizing to a single workflow.
build-and-containerize:
needs: get-latest-tag
uses: ./.github/workflows/ci-build.yml
with:
platforms: linux/amd64,linux/arm64
latest: ${{ needs.get-latest-tag.outputs.latest-tag == github.ref_name }}
push: true