Skip to content

ci-tag

ci-tag #58

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:
# Delegate building and containerizing to a single workflow.
build-and-containerize:
uses: ./.github/workflows/ci-build.yml
release:
runs-on: ubuntu-latest
needs: build-and-containerize
steps:
- name: Download release notes
uses: actions/checkout@v4
with:
sparse-checkout: |
README.md
- name: Create release
uses: softprops/action-gh-release@v2
with:
body_path: README.md
tag_name: ${{ github.ref_name }}
prerelease: ${{ contains(github.ref_name, '-rc') }}
deploy-production:
runs-on: ubuntu-latest
needs: containerize

Check failure on line 40 in .github/workflows/ci-tag.yml

View workflow run for this annotation

GitHub Actions / ci-tag

Invalid workflow file

The workflow is not valid. .github/workflows/ci-tag.yml (Line: 40, Col: 12): Job 'deploy-production' depends on unknown job 'containerize'.
if: ${{ !contains(github.ref_name, '-rc') }}
environment: production
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github
- uses: ./.github/actions/kubernetes-rollout-restart
with:
apiurl: ${{ secrets.KUBERNETES_APIURL }}
token: ${{ secrets.KUBERNETES_TOKEN }}
deployments: ${{ vars.DEPLOYMENT_NAMES }}