Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
name: Release services
on:
release:
types: [created]
jobs:
scope:
runs-on: ubuntu-latest
outputs:
service: ${{ steps.scope.outputs.service }}
version: ${{ steps.scope.outputs.version }}
steps:
- name: Check Out Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Get tag name
id: tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Get scope
id: scope
run: |
TAG=${{ steps.tag.outputs.tag }}
SERVICE_NAME=$(echo $TAG | cut -d'@' -f2 | cut -d'/' -f2)
VERSION=$(echo $TAG | cut -d'@' -f3)
echo "service=${SERVICE_NAME}" >> $GITHUB_OUTPUT
echo "version=${VERSION}" >> $GITHUB_OUTPUT
docker:
uses: ./.github/workflows/docker.yml
needs: scope
with:
scope: '["${{ needs.scope.outputs.service }}"]'
version: ${{ needs.scope.outputs.version }}
secrets: inherit