mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-16 16:51:02 +02:00
Some basic structure for workflows
This commit is contained in:
parent
222dc9982c
commit
a3609f03c2
2 changed files with 67 additions and 0 deletions
20
.github/workflows/pull-request.yaml
vendored
Normal file
20
.github/workflows/pull-request.yaml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
name: Test pull request
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
|
||||
container-push:
|
||||
|
||||
name: Do nothing
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
47
.github/workflows/release.yaml
vendored
Normal file
47
.github/workflows/release.yaml
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
|
||||
name: Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
# branches:
|
||||
# -
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: 'write'
|
||||
|
||||
jobs:
|
||||
|
||||
deploy:
|
||||
|
||||
name: Build everything
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get version
|
||||
id: version
|
||||
run: echo VERSION=sha-$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Extract metadata for container
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: accounts-svc
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=sha
|
||||
|
||||
- name: Build packages
|
||||
run: make packages
|
||||
|
||||
- name: Build container
|
||||
run: make container
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue