mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-30 19:06:21 +02:00
parent
dda29bb663
commit
514b0e8ac6
1 changed files with 29 additions and 24 deletions
53
.github/workflows/release.yaml
vendored
53
.github/workflows/release.yaml
vendored
|
|
@ -4,8 +4,8 @@ name: Build
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
# branches:
|
branches:
|
||||||
# - release/v0.12
|
- release/v0.12
|
||||||
tags:
|
tags:
|
||||||
- v0.12.*
|
- v0.12.*
|
||||||
|
|
||||||
|
|
@ -29,6 +29,15 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- run: echo ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
- run: echo ${{ secrets.DOCKER_SECRET }} | sum - | sum - | md5sum
|
||||||
|
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_SECRET }}
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: pip3 install jsonnet
|
run: pip3 install jsonnet
|
||||||
|
|
||||||
|
|
@ -37,32 +46,14 @@ jobs:
|
||||||
run: echo VERSION=sha-$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
|
run: echo VERSION=sha-$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: make packages
|
run: make packages VERSION=${{ steps.version.outputs.VERSION }}
|
||||||
|
|
||||||
# - name: Build container
|
- name: Publish release distributions to PyPI
|
||||||
# run: make container
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
|
||||||
# - name: Publish release distributions to PyPI
|
|
||||||
# uses: pypa/gh-action-pypi-publish@release/v1
|
|
||||||
|
|
||||||
- name: Create deploy bundle
|
- name: Create deploy bundle
|
||||||
run: templates/generate-all deploy.zip v${{ steps.version.outputs.VERSION }}
|
run: templates/generate-all deploy.zip v${{ steps.version.outputs.VERSION }}
|
||||||
|
|
||||||
# - name: Create Release
|
|
||||||
# id: create_release
|
|
||||||
# uses: actions/create-release@v1
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
|
||||||
# with:
|
|
||||||
# tag_name: ${{ github.ref }}
|
|
||||||
# release_name: Release ${{ github.ref }}
|
|
||||||
# body: |
|
|
||||||
# Changes in this Release
|
|
||||||
# - First Change
|
|
||||||
# - Second Change
|
|
||||||
# draft: true
|
|
||||||
# prerelease: true
|
|
||||||
|
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
artifacts: deploy.zip
|
artifacts: deploy.zip
|
||||||
|
|
@ -71,14 +62,28 @@ jobs:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
skipIfReleaseExists: true
|
skipIfReleaseExists: true
|
||||||
|
|
||||||
|
- name: Build container
|
||||||
|
run: make container VERSION=${{ steps.version.outputs.VERSION }}
|
||||||
|
|
||||||
- name: Extract metadata for container
|
- name: Extract metadata for container
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: trustgraph-flow
|
images: trustgraph/trustgraph-flow
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=sha
|
type=sha
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
id: push
|
||||||
|
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Containerfile
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue