Skip to content

ci: add trigger for gitlab pipeline #1

ci: add trigger for gitlab pipeline

ci: add trigger for gitlab pipeline #1

Workflow file for this run

name: Release
on:
workflow_call:
inputs:
VERSION:
required: true
type: string
secrets:
DEPLOY_PROD_SSH_KEY:
description: 'A DEPLOY_PROD_SSH_KEY passed from UnitTest'
required: true
KNOWN_HOSTS:
description: 'A KNOWN_HOSTS passed from UnitTest'
required: true
RAW_AUTH_RW:
description: 'A RAW_AUTH_RW passed from UnitTest'
required: true
YUM_AUTH_RW:
description: 'A YUM_AUTH_RW passed from UnitTest'
required: true
GITLAB_BUILDER:
description: 'A GITLAB_BUILDER passed from Release'
required: true
env:
VERSION: ${{ inputs.version }}
YUM_REGISTRY: https://binary.picodata.io/repository/yum
DEB_REGISTRY: https://binary.picodata.io/repository/ubuntu
RAW_REGISTRY: https://binary.picodata.io/repository/raw
jobs:
build:
name: Build genin binary
runs-on: [self-hosted, genin]
container:
image: docker.binary.picodata.io/rust-builder-stable:latest
steps:
- uses: actions/checkout@v3
- name: Run make build_binary
run: |
make build_musl
- name: Archive musl binary
uses: actions/upload-artifact@v3
with:
name: x86_64-unknown-linux-musl.zip
path: target/x86_64-unknown-linux-musl/release/genin
musl-bin:
name: Upload musl binary
needs: [build]
runs-on: [self-hosted, genin]
container:
image: docker.binary.picodata.io/rockylinux:8
steps:
- name: Download builded binary
uses: actions/download-artifact@v3
with:
name: x86_64-unknown-linux-musl.zip
path: .
- name: Upload archive with binary
run: |
tar -czvf genin-${{ env.VERSION }}-x86_64-musl.tar.gz genin
curl -v -f -H "Authorization: Basic ${{ secrets.RAW_AUTH_RW }}" --upload-file genin-${{ env.VERSION }}-x86_64-musl.tar.gz ${{ env.RAW_REGISTRY }}/genin/bin/genin-${{ env.VERSION }}-x86_64-musl.tar.gz
- uses: actions/checkout@v3
clean:
runs-on: self-hosted
steps:
- uses: AutoModality/action-clean@v1
- run: echo cleaned wor
kspace

Check failure on line 69 in .github/workflows/Release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/Release.yaml

Invalid workflow file

You have an error in your yaml syntax on line 69
release:
name: Create new release
runs-on: [ self-hosted, genin ]
steps:
- name: Create genin Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: genin v${{ env.VERSION }}
body: |
---
- [genin v${{ env.VERSION }}](#genin-v${{ env.VERSION }})
* [executable](#executable)
* [MacOSX](#macosx)
### Executable
[genin-${{ env.VERSION }}-x86_64-musl.tar.gz](${{ env.RAW_REGISTRY }}/genin/bin/genin-${{ env.VERSION }}-x86_64-musl.tar.gz)
### MacOSX
[genin-${{ env.VERSION }}-x86_64-macos.tar.gz](${{ env.RAW_REGISTRY }}/genin/osx/genin-${{ env.VERSION }}-x86_64-macosx.tar.gz)
### For other OS, use the Picodata repository:
[genin-${{ env.VERSION }}-x86_64-musl.tar.gz(https://picodata.io/download/)
call_gitlab_ci:
name: Trigger_gitlab
secrets:
GITLAB_BUILDER: ${{ secrets.GITLAB_BUILDER }}
uses: ./.github/workflows/Curl.yaml