Skip to content

chore: rebase

chore: rebase #259

Workflow file for this run

name: Default - Release
on:
push:
tags:
- '*/*/v*.*.*'
jobs:
Extract:
name: Extract
runs-on: "formance-runner"
outputs:
type: ${{ steps.extract3.outputs.type }}
service: ${{ steps.extract.outputs.service }}
version: ${{ steps.extract2.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Extract service name
id: extract
run: echo "service=$(node .github/actions/extract-in-tag/service.js ${{ github.ref_name }})" >> $GITHUB_OUTPUT
- name: Extract version name
id: extract2
run: echo "version=$(node .github/actions/extract-in-tag/version.js ${{ github.ref_name }})" >> $GITHUB_OUTPUT
- name: Extract type name
id: extract3
run: echo "type=$(node .github/actions/extract-in-tag/type.js ${{ github.ref_name }})" >> $GITHUB_OUTPUT
Release:
runs-on: "formance-runner"
needs:
- Extract
steps:
- uses: 'actions/checkout@v4'
with:
fetch-depth: 0
- name: Setup Env
uses: ./.github/actions/env
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: "NumaryBot"
password: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- run: >
earthly
--no-output
--allow-privileged
--secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
--secret SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY
--secret GITHUB_TOKEN=$GITHUB_TOKEN
--secret FURY_TOKEN=$FURY_TOKEN
--secret GORELEASER_KEY=$GORELEASER_KEY
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
+goreleaser --mode=release --type=${{ needs.Extract.outputs.type }} --component=${{ needs.Extract.outputs.service }}
env:
GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_OSS }}