mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 09:11:03 +02:00
130 lines
3.2 KiB
YAML
130 lines
3.2 KiB
YAML
|
|
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
# python-packages:
|
|
|
|
# name: Release Python packages
|
|
# runs-on: ubuntu-24.04
|
|
# permissions:
|
|
# contents: write
|
|
# id-token: write
|
|
# environment:
|
|
# name: release
|
|
|
|
# steps:
|
|
|
|
# - name: Checkout
|
|
# uses: actions/checkout@v4
|
|
|
|
# - name: Get version
|
|
# id: version
|
|
# run: echo VERSION=$(git describe --exact-match --tags | sed 's/^v//') >> $GITHUB_OUTPUT
|
|
|
|
# - name: Build packages
|
|
# run: make packages VERSION=${{ steps.version.outputs.VERSION }}
|
|
|
|
# - name: Publish release distributions to PyPI
|
|
# uses: pypa/gh-action-pypi-publish@release/v1
|
|
|
|
deploy-container-image:
|
|
|
|
name: Release container image
|
|
runs-on: ubuntu-24.04
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
environment:
|
|
name: release
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Docker Hub token
|
|
run: echo ${{ secrets.DOCKER_SECRET }} > docker-token.txt
|
|
|
|
- name: Authenticate with Docker hub
|
|
run: make docker-hub-login
|
|
|
|
- name: Get version
|
|
id: version
|
|
run: echo VERSION=$(git describe --exact-match --tags | sed 's/^v//') >> $GITHUB_OUTPUT
|
|
|
|
- name: Put version into package manifests
|
|
run: make update-package-versions VERSION=${{ steps.version.outputs.VERSION }}
|
|
|
|
- name: Extract metadata for container
|
|
id: meta
|
|
uses: docker/metadata-action@v4
|
|
with:
|
|
images: trustgraph/trustgraph-flow
|
|
tags: |
|
|
type=ref,event=branch
|
|
type=ref,event=pr
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=sha
|
|
|
|
- run: echo ${{ steps.meta.outputs.labels }}
|
|
- run: echo ${{ steps.meta.outputs.tags }}
|
|
|
|
# - name: Build containers
|
|
# run: make container VERSION=${{ steps.version.outputs.VERSION }}
|
|
|
|
# - name: Push containers
|
|
# run: make push VERSION=${{ steps.version.outputs.VERSION }}
|
|
|
|
# - name: Build and push Docker image
|
|
# id: push
|
|
# uses: docker/build-push-action@v6
|
|
# with:
|
|
# context: .
|
|
# file: ./Containerfile
|
|
# push: true
|
|
# tags: ${{ steps.meta.outputs.tags }}
|
|
# labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
# release-bundle:
|
|
|
|
# name: Upload release bundle
|
|
# runs-on: ubuntu-24.04
|
|
# permissions:
|
|
# contents: write
|
|
# id-token: write
|
|
# environment:
|
|
# name: release
|
|
|
|
# steps:
|
|
|
|
# - name: Checkout
|
|
# uses: actions/checkout@v4
|
|
|
|
# - name: Install build dependencies
|
|
# run: pip3 install jsonnet
|
|
|
|
# - name: Get version
|
|
# id: version
|
|
# run: echo VERSION=$(git describe --exact-match --tags | sed 's/^v//') >> $GITHUB_OUTPUT
|
|
|
|
# - name: Create deploy bundle
|
|
# run: templates/generate-all deploy.zip ${{ steps.version.outputs.VERSION }}
|
|
|
|
# - uses: ncipollo/release-action@v1
|
|
# with:
|
|
# artifacts: deploy.zip
|
|
# generateReleaseNotes: true
|
|
# makeLatest: false
|
|
# prerelease: true
|
|
# skipIfReleaseExists: true
|